diff --git a/conservancy/usethesource/templates/usethesource/candidate.html b/conservancy/usethesource/templates/usethesource/candidate.html index 8d396d227e3ffdcf6c14dd1fac086cfd41b3dc19..e4a20ca6a610502c604a70774ad06fad5f8dd460 100644 --- a/conservancy/usethesource/templates/usethesource/candidate.html +++ b/conservancy/usethesource/templates/usethesource/candidate.html @@ -1,5 +1,7 @@ {% extends "usethesource/base.html" %} +{% block title %}{{ candidate.name }} - Software Freedom Conservancy{% endblock %} + {% block head %} {{ block.super }} @@ -11,10 +13,14 @@
-

{{ candidate.name }}

-

Vendor: {{ candidate.vendor }}

-

Device: {{ candidate.device }}

-

Released: {{ candidate.release_date }}

+
+

{{ candidate.name }}

+ +
+ +

Vendor: {{ candidate.vendor }}

+

Device: {{ candidate.device }}

+

Released: {{ candidate.release_date }}

Download source
@@ -22,12 +28,14 @@
-

{{ candidate.description }}

+ {{ candidate.description|linebreaks }} -

Comments

- {% for comment in candidate.comment_set.all %} - {% include "usethesource/comment_partial.html" %} - {% endfor %} + {% with comments=candidate.comment_set.all %} + {% if comments or user.is_staff %}

Comments

{% endif %} + {% for comment in comments %} + {% include "usethesource/comment_partial.html" %} + {% endfor %} + {% endwith %} {% if user.is_staff %} {% include "usethesource/add_comment_button_partial.html" %}