Skip to content

Commit

Permalink
Fix bug mozilla#74 - not assuming that all entries will have a catego…
Browse files Browse the repository at this point in the history
…ry, as right now it's an optional field
  • Loading branch information
rossbruniges committed Dec 4, 2012
1 parent 157d968 commit 110ea77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gameon/submissions/templates/submissions/single.html
Expand Up @@ -39,8 +39,10 @@ <h2 class="whimper">Submitted by</h2>
{% if entry.editable_by(user=request.user) and request.challenge.is_open() %}
<a class="cta whimper" href="{{ url('submissions.entry_edit', slug=entry.slug) }}">Edit your game</a>
{% endif %}
{% if entry.category %}
<h2 class="whimper">Category</h2>
<p><a href="{{ url('submissions.entry_list', category=entry.category.slug) }}">{{ entry.category }}</a></p>
{% endif %}
</aside>
</div>
</div>
Expand Down

0 comments on commit 110ea77

Please sign in to comment.