{% if css_file %}
{% endif %}
{% if story %}
{{ story.title }}
Source:
{{ url }}
{{ story.score }} points by
{{ story.author }}
on
{{ story.source }}
|
{{ story.num_comments }} comment{{ 's' if story.num_comments != 1 }}
{% if not show_comments and story.text %}
{{ story.text | safe }}
{% elif show_comments %} {% macro render_comment(comment, level) %}
{{ comment.author }}
{{ 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 else '' }}
{% endif %}