Browse Source

Add link to Settings at bottom of Home sidebar

merge-requests/64/head
Deimos 6 years ago
parent
commit
e0810a4e3c
  1. 19
      tildes/tildes/templates/home.jinja2

19
tildes/tildes/templates/home.jinja2

@ -54,9 +54,15 @@
<a href="/groups" class="btn btn-primary">Browse the list of groups</a> <a href="/groups" class="btn btn-primary">Browse the list of groups</a>
{% endif %} {% endif %}
{% if request.user and not (tag or unfiltered) %}
<hr>
<details>
{% if request.user %}
<div class="divider"></div>
<ul class="nav">
<li>User settings</li>
<ul class="nav">
{% if not (tag or unfiltered) %}
<li><details>
<summary>Filtered topic tags ({{ request.user.filtered_topic_tags|length }})</summary> <summary>Filtered topic tags ({{ request.user.filtered_topic_tags|length }})</summary>
<ul class="topic-tags"> <ul class="topic-tags">
{% for tag in request.user.filtered_topic_tags %} {% for tag in request.user.filtered_topic_tags %}
@ -66,6 +72,11 @@
{% endfor %} {% endfor %}
</ul> </ul>
<a class="btn btn-link" href="/settings/filters">Edit filtered tags</a> <a class="btn btn-link" href="/settings/filters">Edit filtered tags</a>
</details>
</details></li>
{% endif %}
<li class="nav-item ml-2"><a href="/settings">Settings page</a></li>
</ul>
</ul>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
Loading…
Cancel
Save