Improved users, now /create and /edit require user login, changed savepoint() helper
This commit is contained in:
parent
83e2c892b3
commit
f4d536dc47
9 changed files with 102 additions and 42 deletions
|
|
@ -45,7 +45,13 @@
|
|||
</ul>
|
||||
<div class="footer">
|
||||
<div class="footer-copyright">© 2020–2023 Sakuragasaki46.</div>
|
||||
<div class="footer-loggedinas">{% if current_user %}{{ T('logged-in-as') }}: <strong>{{ current_user.username }}</strong>{% else %}{{ T('not-logged-in') }}{% endif %}</div>
|
||||
<div class="footer-loggedinas">
|
||||
{% if current_user.is_authenticated %}
|
||||
{{ T('logged-in-as') }}: <strong>{{ current_user.username }}</strong>
|
||||
{% else %}
|
||||
{{ T('not-logged-in') }}. <a href="/accounts/login">{{ T("login") }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="footer-actions" id="page-actions">{% block actions %}{% endblock %}</div>
|
||||
<div class="footer-versions">{{app_name}} version {{app_version}}</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue