Skip to content

Commit

Permalink
Make home url optional. Closes #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Hensley committed Apr 26, 2012
1 parent e909d1f commit 936b2d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion peavy/templates/peavy/base.html
Expand Up @@ -11,7 +11,8 @@
<header>
<nav id="nav1">
<ul>
<li><a class="home" href="{% url home %}">home</a></li>
{% url home as home_url %}
<li><a class="home" href="{{ home_url|default:"/" }}">home</a></li>
<li><a class="dashboard" href="{% url peavy:dashboard %}">dashboard</a></li>
{% block extra_nav %}{% endblock extra_nav %}
</ul>
Expand Down

0 comments on commit 936b2d5

Please sign in to comment.