Skip to content

Commit

Permalink
remove login link on login page
Browse files Browse the repository at this point in the history
Fixes #33
  • Loading branch information
gavinwahl committed Apr 27, 2017
1 parent e8f2a49 commit b0d0ec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buggy/templates/buggy/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<header id="site_title">
<nav>
<a class="logo" href="{% url 'buggy:bug_list' %}">Buggy</a>
{% block loginArea %}
{% if request.user.is_authenticated %}
<a class="button newBugButton" href="{% url 'buggy:bug_create' %}" title="New Bug">+ New Bug</a>
<section class="navLoginState">
Expand All @@ -45,6 +46,7 @@
{% else %}
<a href="{% url 'login' %}">Log In</a>
{% endif %}
{% endblock loginArea %}
</nav>
</header>
{% block messages %}
Expand Down
2 changes: 2 additions & 0 deletions buggy_accounts/templates/registration/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ <h1>Log In</h1>
<input type="submit" value="Log In">
</form>
{% endblock content %}

{% block loginArea %}{% endblock %}

0 comments on commit b0d0ec5

Please sign in to comment.