Add Page.get_perms() + more material icons
This commit is contained in:
parent
0801e841ad
commit
a24386c45e
5 changed files with 46 additions and 10 deletions
|
|
@ -58,9 +58,9 @@
|
|||
<div class="footer-copyright">© 2020–2023 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>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
<ul>
|
||||
{% if page_n > 1 %}
|
||||
<li class="nl-prev"><a href="?page={{ page_n - 1}}">« Previous page</a></li>
|
||||
<li class="nl-prev"><a href="?page={{ page_n - 1 }}">« Previous page</a></li>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
<ul>
|
||||
{% if page_n > 1 %}
|
||||
<li class="nl-prev"><a href="?page={{ page_n - 1}}">« Previous page</a></li>
|
||||
<li class="nl-prev"><a href="?page={{ page_n - 1 }}">« 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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue