Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Commit

Permalink
Using url tag to build links for kobocat menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jeverling committed Jan 5, 2018
1 parent be71275 commit f8cb769
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/topbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<i class="fa fa-bars fa-lg fa-inverse"></i>
</span>
{% endif %}
<h1 class="header-bar__title"><a href="/"><span class="header-bar__title-text">{% trans "Projects" %}</span></a></h1>
<h1 class="header-bar__title"><a href="{% url "onadata.apps.main.views.home" %}"><span class="header-bar__title-text">{% trans "Projects" %}</span></a></h1>
</div>
</header>

Expand All @@ -32,14 +32,14 @@ <h1 class="header-bar__title"><a href="/"><span class="header-bar__title-text">{

{% url "user_profile" user.username as is_username %}
<li class="top-level-menu__item {% if request.path == is_username %} is-active {% endif %}">
<a href="/">
<a href="{% url "onadata.apps.main.views.home" %}">
<i class="header-bar__page-icon fa fa-fw fa-globe"></i>
{% trans "Projects" %}
</a>
</li>

<li class="top-level-menu__item {% if 'settings' in request.path %} is-active {% endif %}">
<a href="/{{ user.username }}/settings">
<a href="{% url "onadata.apps.main.views.profile_settings" user.username %}">
<i class="header-bar__page-icon fa fa-fw fa-cog"></i>
{% trans "Settings" %}
</a>
Expand All @@ -64,7 +64,7 @@ <h1 class="header-bar__title"><a href="/"><span class="header-bar__title-text">{
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/" title="KoBoCAT"><img alt="KoBoCAT"
<a class="brand" href="{% url "onadata.apps.main.views.home" %}" title="KoBoCAT"><img alt="KoBoCAT"
src="{% static "images/kobocat_logo.png" %}" style="height: 34px" /></a>
<div class="nav-collapse collapse">
{% if form_view %}
Expand Down Expand Up @@ -100,7 +100,7 @@ <h1 class="header-bar__title"><a href="/"><span class="header-bar__title-text">{
<ul class="nav pull-right">
{% if user.is_authenticated %}
<!-- <li><a id="new-form" href="#" rel="tooltip" title="{% trans "New Form" %}"><img src="{{ STATIC_URL }}images/upload-icon.png"></a></li> -->
<li><a href="/{{user.username}}">{{user.username}}</a></li>
<li><a href="{% url "user_profile" user.username %}">{{user.username}}</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<b class="caret"></b>
Expand Down

0 comments on commit f8cb769

Please sign in to comment.