diff --git a/webclient/public/index.html b/webclient/public/index.html index d396bb6..3e8c791 100644 --- a/webclient/public/index.html +++ b/webclient/public/index.html @@ -49,13 +49,12 @@
{% if story %} -
-
- {% if show_comments %} -

{{ story.title }}

- {% else %} -

{{ story.title }}

- {% endif %} +
+
+

{{ story.title }}

+
+ Source: {{ url }} +
{{ story.score }} points by {{ story.author }} @@ -64,30 +63,31 @@ {{ story.num_comments }} comment{{ 's' if story.num_comments != 1 }}
-
-
- - {{ '' if not show_comments else '' }} - + + {% if not show_comments and story.text %} +
{{ story.text | safe }}
+ {% elif show_comments %} + {% macro render_comment(comment, level) %} +
+ +
{{ comment.text | safe }}
+ {% for reply in comment.comments %} + {{ render_comment(reply, level + 1) }} + {% endfor %} +
+ {% endmacro %} +
+ {% for comment in story.comments %}{{ render_comment(comment, 0) }}{% endfor %}
+ {% endif %} +
+ - {% if not show_comments %} -
{{ story.text | safe }}
- {% else %} - {% macro render_comment(comment, level) %} -
- -
{{ comment.text | safe }}
- {% for reply in comment.comments %} - {{ render_comment(reply, level + 1) }} - {% endfor %} -
- {% endmacro %} -
- {% for comment in story.comments %}{{ render_comment(comment, 0) }}{% endfor %} -
- {% endif %}
{% endif %}