Add class navigation_link to homepage and header links.
This commit is contained in:
parent
47f71e0b7e
commit
226e39419d
2 changed files with 18 additions and 18 deletions
|
@ -1,13 +1,13 @@
|
||||||
{% macro make_header(session) %}
|
{% macro make_header(session) %}
|
||||||
<nav id="header">
|
<nav id="header">
|
||||||
<a class="header_element" href="/">Etiquette</a>
|
<a class="header_element navigation_link" href="/">Etiquette</a>
|
||||||
<a class="header_element" href="/search">Search</a>
|
<a class="header_element navigation_link" href="/search">Search</a>
|
||||||
<a class="header_element" href="/tags">Tags</a>
|
<a class="header_element navigation_link" href="/tags">Tags</a>
|
||||||
{% if session.user %}
|
{% 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>
|
<button id="logout_button" class="header_element" onclick="return api.users.logout(common.go_to_root);" style="flex:0">Logout</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="header_element" href="/login">Log in</a>
|
<a class="header_element navigation_link" href="/login">Log in</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
|
@ -67,27 +67,27 @@ body > .nice_link
|
||||||
{{motd[1]}}
|
{{motd[1]}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</p>
|
</p>
|
||||||
<a class="nice_link" href="/search">Search</a>
|
<a class="nice_link navigation_link" href="/search">Search</a>
|
||||||
<a class="nice_link" href="/tags">Browse tags</a>
|
<a class="nice_link navigation_link" href="/tags">Browse tags</a>
|
||||||
<a class="nice_link" href="/albums">Browse albums</a>
|
<a class="nice_link navigation_link" href="/albums">Browse albums</a>
|
||||||
<a class="nice_link" href="/bookmarks">Bookmarks</a>
|
<a class="nice_link navigation_link" href="/bookmarks">Bookmarks</a>
|
||||||
{% if session.user %}
|
{% 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 %}
|
{% else %}
|
||||||
<a class="nice_link" href="/login">Log in</a>
|
<a class="nice_link navigation_link" href="/login">Log in</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.is_localhost %}
|
{% if request.is_localhost %}
|
||||||
<a class="nice_link" href="/admin">Admin</a>
|
<a class="nice_link navigation_link" href="/admin">Admin</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="link_group">
|
<div class="link_group">
|
||||||
<a class="nice_link" href="/?theme=turquoise">Turquoise</a>
|
<a class="nice_link navigation_link" href="/?theme=turquoise">Turquoise</a>
|
||||||
<a class="nice_link" href="/?theme=slate">Slate</a>
|
<a class="nice_link navigation_link" href="/?theme=slate">Slate</a>
|
||||||
<a class="nice_link" href="/?theme=pearl">Pearl</a>
|
<a class="nice_link navigation_link" href="/?theme=pearl">Pearl</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="link_group">
|
<div class="link_group">
|
||||||
<a class="nice_link" href="https://www.github.com/voussoir/etiquette">GitHub</a>
|
<a class="nice_link navigation_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 navigation_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.codeberg.org/voussoir/etiquette">Codeberg</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue