Skip to content
This repository
Browse code

Fix bug #74 - not assuming that all entries will have a category, as …

…right now it's an optional field
  • Loading branch information...
commit 110ea77c40eff0d26079144c9812be1568cb998d 1 parent 157d968
Ross Bruniges authored December 04, 2012
2  gameon/submissions/templates/submissions/single.html
@@ -39,8 +39,10 @@ <h2 class="whimper">Submitted by</h2>
39 39
                 {% if entry.editable_by(user=request.user) and request.challenge.is_open() %}
40 40
                     <a class="cta whimper" href="{{ url('submissions.entry_edit', slug=entry.slug) }}">Edit your game</a>
41 41
                 {% endif %}
  42
+                {% if entry.category %}
42 43
                 <h2 class="whimper">Category</h2>
43 44
                 <p><a href="{{ url('submissions.entry_list', category=entry.category.slug) }}">{{ entry.category }}</a></p>
  45
+                {% endif %}
44 46
             </aside>
45 47
         </div>
46 48
     </div>

0 notes on commit 110ea77

Please sign in to comment.
Something went wrong with that request. Please try again.