make the small logo link to the camp detail page when viewing a camp specific page

This commit is contained in:
Thomas Steen Rasmussen 2017-02-20 00:08:32 +01:00
parent f1e4fc9fea
commit 77f79ec64c

View file

@ -34,11 +34,14 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="/"> {% if request.resolver_match.kwargs.camp_slug and camp %}
{% if request.resolver_match.kwargs.camp_slug and camp %} <a class="navbar-brand" href="{% url 'camp_detail' camp_slug=camp.slug %}">
<img src="{% static camp.logo_small %}" class="img-responsive" /> <img src="{% static camp.logo_small %}" class="img-responsive" />
{% else %} </a>
{% else %}
<a class="navbar-brand" href="/">
<img src="{% static 'img/logo-small.png' %}" class="img-responsive" /> <img src="{% static 'img/logo-small.png' %}" class="img-responsive" />
</a>
{% endif %} {% endif %}
</a> </a>
</div> </div>