Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Fix bug #74 - not assuming that all entries will have a category #75

Merged
merged 1 commit into from Dec 4, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're being particular, the (non-existent) style guide suggests the content of this {% if ... %} block should be indented.

</aside>
</div>
</div>
Expand Down