Merge branch 'master' of git.seidlm.at:seidl/rstcms

This commit is contained in:
Matthias Seidl 2020-11-20 11:40:10 +01:00
commit 60bd4344ea
2 changed files with 25 additions and 16 deletions

View File

@ -1,2 +1,5 @@
<h1>Error</h1>
<p>{{ error.description }}</p> <h1>Something bad happened</h1>
<p>{{ error.description }}</p>

View File

@ -1,14 +1,20 @@
<style>
pre { max-width: 100%; overflow: scroll; }
</style> <style>
{% if user %} pre { max-width: 100%; overflow: scroll; }
<div> </style>
Logged in as {% if user %}
<span><img src='{{ user.avatar_url }}'></span> <div>
<span>{{ user.username }}</span> Logged in as
</div> <span><img src='{{ user.avatar_url }}'></span>
<a href="/test">test</a> <span>{{ user.username }}</span>
<a href="/logout">logout</a> </div>
{% else %} <a href="/test">test</a>
<a href="/login">login</a> <a href="/logout">logout</a>
{% endif %} {% else %}
<a href="/login">login</a>
{% endif %}