Add Page.get_perms() + more material icons

This commit is contained in:
Yusur 2023-05-16 22:38:21 +02:00
parent 0801e841ad
commit a24386c45e
5 changed files with 46 additions and 10 deletions

View file

@ -58,9 +58,9 @@
<div class="footer-copyright">&copy; 20202023 Sakuragasaki46.</div>
<div class="footer-loggedinas">
{% if current_user.is_authenticated %}
{{ T('logged-in-as') }}: <strong>{{ current_user.username }}</strong>
<span class="material-icons">person</span> {{ T('logged-in-as') }}: <strong>{{ current_user.username }}</strong>
{% else %}
{{ T('not-logged-in') }}. <a href="/accounts/login">{{ T("login") }}</a>
<span class="material-icons">person_off</span> {{ T('not-logged-in') }}. <a href="/accounts/login">{{ T("login") }}</a>
{% endif %}
</div>
<div class="footer-actions" id="page-actions">{% block actions %}{% endblock %}</div>

View file

@ -13,7 +13,7 @@
<ul>
{% if page_n > 1 %}
<li class="nl-prev"><a href="?page={{ page_n - 1}}">&laquo; Previous page</a></li>
<li class="nl-prev"><a href="?page={{ page_n - 1 }}">&laquo; Previous page</a></li>
{% endif %}

View file

@ -7,7 +7,9 @@
<h1 id="firstHeading">{{ T('welcome').format(app_name) }}</h1>
<div class="nl-new">
<a href="/create/"><button class="submit-primary">{{ T('new-note') }}</button></a>
<a href="/create/">
<button class="submit-primary"><span class="material-icons">create</span> {{ T('new-note') }}</button>
</a>
</div>
<h2>{{ T('latest-notes') }}</h2>

View file

@ -18,7 +18,7 @@
<ul>
{% if page_n > 1 %}
<li class="nl-prev"><a href="?page={{ page_n - 1}}">&laquo; Previous page</a></li>
<li class="nl-prev"><a href="?page={{ page_n - 1 }}">&laquo; Previous page</a></li>
{% endif %}
{% for u in users %}
@ -29,7 +29,7 @@
-
Groups:
<ul class="inline">
{% for ug in u.groups() %}
{% for ug in u.groups %}
<li>{{ ug.name }}</li>
{% endfor %}
</ul>