mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-13 11:46:22 +00:00
Change behaviour of brand image link; Logged in user => Profile. Anonymous => /
This commit is contained in:
@@ -19,9 +19,17 @@
|
|||||||
{% block topbar %}
|
{% block topbar %}
|
||||||
{% block site_brand %}
|
{% block site_brand %}
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
<a class="navbar-brand d-none d-lg-block" href="/">
|
{% if user.is_anonymous %}
|
||||||
<img src="{% static 'img/logo.png' %}" width="60" height="60" class="d-inline-block align-top" alt="{% trans 'Home' %}">
|
<a class="navbar-brand d-none d-lg-block" href="/">
|
||||||
</a>
|
<img src="{% static 'img/logo.png' %}" width="60" height="60" class="d-inline-block align-top"
|
||||||
|
alt="{% trans 'Home' %}">
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a class="navbar-brand d-none d-lg-block" href="{% url 'profile' %}">
|
||||||
|
<img src="{% static 'img/logo.png' %}" width="60" height="60" class="d-inline-block align-top"
|
||||||
|
alt="{% trans 'Profile' %}">
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<span class="d-none d-lg-block">
|
<span class="d-none d-lg-block">
|
||||||
<div id="site-branding">
|
<div id="site-branding">
|
||||||
@@ -36,6 +44,13 @@
|
|||||||
{% block nav %}
|
{% block nav %}
|
||||||
<div class="collapse navbar-collapse" id="navbarNavDropdown">
|
<div class="collapse navbar-collapse" id="navbarNavDropdown">
|
||||||
<ul class="navbar-nav mr-auto nav">
|
<ul class="navbar-nav mr-auto nav">
|
||||||
|
{% if not user.is_anonymous %}
|
||||||
|
<li class="nav-item" style="margin-left: 5px;">
|
||||||
|
<a class="nav-link" href="/" target="_new"><i class="fa fa-home" aria-hidden="true"></i>
|
||||||
|
{% trans 'Home' %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
<li class="nav-item" style="margin-left: 5px;">
|
<li class="nav-item" style="margin-left: 5px;">
|
||||||
<a class="nav-link" href="TODO contact" target="_new"><i class="fa fa-envelope" aria-hidden="true"></i>
|
<a class="nav-link" href="TODO contact" target="_new"><i class="fa fa-envelope" aria-hidden="true"></i>
|
||||||
{% trans 'Contact' %}
|
{% trans 'Contact' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user