Skip to content

Commit

Permalink
Merge pull request mozilla#75 from rossbruniges/fix-single-page
Browse files Browse the repository at this point in the history
Fix bug mozilla#74 - not assuming that all entries will have a category
  • Loading branch information
rossbruniges committed Dec 4, 2012
2 parents 157d968 + 110ea77 commit 7e5355f
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 7e5355f

Please sign in to comment.