Add class navigation_link to homepage and header links.

This commit is contained in:
voussoir 2022-11-11 15:30:23 -08:00
parent 47f71e0b7e
commit 226e39419d
2 changed files with 18 additions and 18 deletions

View file

@ -1,13 +1,13 @@
{% macro make_header(session) %}
<nav id="header">
<a class="header_element" href="/">Etiquette</a>
<a class="header_element" href="/search">Search</a>
<a class="header_element" href="/tags">Tags</a>
<a class="header_element navigation_link" href="/">Etiquette</a>
<a class="header_element navigation_link" href="/search">Search</a>
<a class="header_element navigation_link" href="/tags">Tags</a>
{% if session.user %}
<a class="header_element dynamic_user_display_name" href="/userid/{{session.user.id}}">{{session.user.display_name}}</a>
<a class="header_element navigation_link dynamic_user_display_name" href="/userid/{{session.user.id}}">{{session.user.display_name}}</a>
<button id="logout_button" class="header_element" onclick="return api.users.logout(common.go_to_root);" style="flex:0">Logout</button>
{% else %}
<a class="header_element" href="/login">Log in</a>
<a class="header_element navigation_link" href="/login">Log in</a>
{% endif %}
</nav>
{% endmacro %}

View file

@ -67,27 +67,27 @@ body > .nice_link
{{motd[1]}}
{%- endif -%}
</p>
<a class="nice_link" href="/search">Search</a>
<a class="nice_link" href="/tags">Browse tags</a>
<a class="nice_link" href="/albums">Browse albums</a>
<a class="nice_link" href="/bookmarks">Bookmarks</a>
<a class="nice_link navigation_link" href="/search">Search</a>
<a class="nice_link navigation_link" href="/tags">Browse tags</a>
<a class="nice_link navigation_link" href="/albums">Browse albums</a>
<a class="nice_link navigation_link" href="/bookmarks">Bookmarks</a>
{% if session.user %}
<a class="nice_link" href="/userid/{{session.user.id}}">{{session.user.display_name}}</a>
<a class="nice_link navigation_link" href="/userid/{{session.user.id}}">{{session.user.display_name}}</a>
{% else %}
<a class="nice_link" href="/login">Log in</a>
<a class="nice_link navigation_link" href="/login">Log in</a>
{% endif %}
{% if request.is_localhost %}
<a class="nice_link" href="/admin">Admin</a>
<a class="nice_link navigation_link" href="/admin">Admin</a>
{% endif %}
<div class="link_group">
<a class="nice_link" href="/?theme=turquoise">Turquoise</a>
<a class="nice_link" href="/?theme=slate">Slate</a>
<a class="nice_link" href="/?theme=pearl">Pearl</a>
<a class="nice_link navigation_link" href="/?theme=turquoise">Turquoise</a>
<a class="nice_link navigation_link" href="/?theme=slate">Slate</a>
<a class="nice_link navigation_link" href="/?theme=pearl">Pearl</a>
</div>
<div class="link_group">
<a class="nice_link" href="https://www.github.com/voussoir/etiquette">GitHub</a>
<a class="nice_link" href="https://www.gitlab.com/voussoir/etiquette">GitLab</a>
<a class="nice_link" href="https://www.codeberg.org/voussoir/etiquette">Codeberg</a>
<a class="nice_link navigation_link" href="https://www.github.com/voussoir/etiquette">GitHub</a>
<a class="nice_link navigation_link" href="https://www.gitlab.com/voussoir/etiquette">GitLab</a>
<a class="nice_link navigation_link" href="https://www.codeberg.org/voussoir/etiquette">Codeberg</a>
</div>
</body>