1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-09-24 03:28:22 +02:00

dashboard template: trim

This commit is contained in:
Zankaria 2024-02-23 22:57:27 +01:00
parent f317691dcd
commit f7a8cb258f

View File

@ -1,15 +1,15 @@
{% if config.url_banner %}<img class="board_image" src="{{ config.url_banner }}" {% if config.banner_width or config.banner_height %}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}" {% endif %}alt="" />{% endif %} {% if config.url_banner %}<img class="board_image" src="{{ config.url_banner }}" {% if config.banner_width or config.banner_height %}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}" {% endif %}alt="" />{% endif %}
<fieldset> <fieldset>
<legend>{% trans 'Boards' %}</legend> <legend>{% trans 'Boards' %}</legend>
<ul> <ul>
{% for board in boards %} {% for board in boards %}
<li> <li>
<a href="?/{{ config.board_path|sprintf(board.uri) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(board.uri) }}</a> <a href="?/{{ config.board_path|sprintf(board.uri) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(board.uri) }}</a>
- -
{{ board.title|e }} {{ board.title|e }}
{% if board.subtitle %} {% if board.subtitle %}
<small>&mdash; <small>&mdash;
{% if config.allow_subtitle_html %} {% if config.allow_subtitle_html %}
{{ board.subtitle }} {{ board.subtitle }}
{% else %} {% else %}
@ -25,7 +25,7 @@
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}
{% if mod|hasPermission(config.mod.newboard) %} {% if mod|hasPermission(config.mod.newboard) %}
<li style="margin-top:15px"><a href="?/new-board"><strong>{% trans 'Create new board' %}</strong></a></li> <li style="margin-top:15px"><a href="?/new-board"><strong>{% trans 'Create new board' %}</strong></a></li>
{% endif %} {% endif %}
@ -48,16 +48,16 @@
{% else %} {% else %}
<em>{% trans 'no subject' %}</em> <em>{% trans 'no subject' %}</em>
{% endif %} {% endif %}
</a> </a>
<small class="unimportant"> <small class="unimportant">
&mdash; by &mdash; by
{% if post.username %} {% if post.username %}
{{ post.username|e }} {{ post.username|e }}
{% else %} {% else %}
<em>deleted?</em> <em>deleted?</em>
{% endif %} {% endif %}
at at
{{ post.time|date(config.post_date) }} {{ post.time|date(config.post_date) }}
</small> </small>
</li> </li>
{% endfor %} {% endfor %}
@ -69,7 +69,7 @@
<li><a href="?/edit_news">{% trans 'News' %}</a></li> <li><a href="?/edit_news">{% trans 'News' %}</a></li>
<li> <li>
<a href="?/inbox"> <a href="?/inbox">
{% trans 'PM inbox' %} {% trans 'PM inbox' %}
{% if unread_pms > 0 %}<strong>{%endif %}({{ unread_pms }} unread){% if unread_pms > 0 %}</strong>{%endif %} {% if unread_pms > 0 %}<strong>{%endif %}({{ unread_pms }} unread){% if unread_pms > 0 %}</strong>{%endif %}
</a> </a>
</li> </li>
@ -78,7 +78,7 @@
<fieldset> <fieldset>
<legend>{% trans 'Administration' %}</legend> <legend>{% trans 'Administration' %}</legend>
<ul> <ul>
{% if mod|hasPermission(config.mod.reports) %} {% if mod|hasPermission(config.mod.reports) %}
<li> <li>
@ -116,14 +116,14 @@
{% if mod|hasPermission(config.mod.edit_config) %} {% if mod|hasPermission(config.mod.edit_config) %}
<li><a href="?/config">{% trans 'Configuration' %}</a></li> <li><a href="?/config">{% trans 'Configuration' %}</a></li>
{% endif %} {% endif %}
</ul> </ul>
</fieldset> </fieldset>
{% if mod|hasPermission(config.mod.search) %} {% if mod|hasPermission(config.mod.search) %}
<fieldset> <fieldset>
<legend>{% trans 'Search' %}</legend> <legend>{% trans 'Search' %}</legend>
<ul> <ul>
<li> <li>
{% include 'mod/search_form.html' %} {% include 'mod/search_form.html' %}
@ -135,7 +135,7 @@
{% if config.mod.dashboard_links and config.mod.dashboard_links|length %} {% if config.mod.dashboard_links and config.mod.dashboard_links|length %}
<fieldset> <fieldset>
<legend>{% trans 'Other' %}</legend> <legend>{% trans 'Other' %}</legend>
<ul> <ul>
{% for label,link in config.mod.dashboard_links %} {% for label,link in config.mod.dashboard_links %}
<li><a href="{{ link }}">{{ label }}</a></li> <li><a href="{{ link }}">{{ label }}</a></li>
@ -162,8 +162,8 @@
<legend>Update</legend> <legend>Update</legend>
<ul> <ul>
<li> <li>
A newer version of vichan A newer version of vichan
(<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available! (<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available!
See <a href="https://engine.vichan.net">https://engine.vichan.net/</a> for upgrade instructions. See <a href="https://engine.vichan.net">https://engine.vichan.net/</a> for upgrade instructions.
</li> </li>
</ul> </ul>
@ -172,9 +172,8 @@
<fieldset> <fieldset>
<legend>{% trans 'User account' %}</legend> <legend>{% trans 'User account' %}</legend>
<ul> <ul>
<li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li> <li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li>
</ul> </ul>
</fieldset> </fieldset>