{% extends "snippets/layout.html" %}
{% block title %}{{ snippet.title }}{% endblock %}
{% block head %}
{{ super() }}
{% endblock %}
{% block body %}
{{ snippet.title }}
By {{ snippet.author.name }}
filed in {{ snippet.category.name }}
{% if snippet.author == g.user or g.user.is_admin %}
(edit)
{% endif %}
{{ snippet.rendered_body }}
{% if snippet.comments or g.user %}
{% if snippet.comments %}
Comments
{% for comment in snippet.comments %}
{{ comment.title or "Comment" }}
by {{ comment.author.name }}
on {{ comment.pub_date.strftime('%Y-%m-%d @ %H:%M') }}
{% if g.user.is_admin %}
(edit)
{% endif %}
Comments
{% for comment in snippet.comments %}-
{{ comment.rendered_text }}
{% endfor %}
{% endif %} {% if g.user %}{{ comment.title or "Comment" }} by {{ comment.author.name }} on {{ comment.pub_date.strftime('%Y-%m-%d @ %H:%M') }} {% if g.user.is_admin %} (edit) {% endif %}
Add Comment