detail.html 844 B

123456789101112131415161718192021222324252627282930313233343536
  1. <h1>{{ post.title|title }} </h1>
  2. {% autoescape off %}
  3. {{ content }}
  4. {% endautoescape %}
  5. <p>
  6. Published on: {{ post.pub_date }}
  7. </p>
  8. <p>
  9. <a href="/admin/blog/post/{{ post.id }}/change">Edit this post</a>
  10. </p>
  11. <div id="comments">
  12. <h2>Comments</h2>
  13. {% for comment in comments %}
  14. <div class="comment">
  15. <p>
  16. {% if comment.website %}
  17. <strong><a href="{{ comment.website }}" target="_blank">
  18. {{ comment.author }}
  19. </a></strong>
  20. {% else %}
  21. <strong>{{ comment.author }}</strong>
  22. {% endif %}
  23. - {{ comment.pub_date }}:
  24. </p>
  25. {{ comment.content }}
  26. </div>
  27. {% empty %}
  28. <p>
  29. There are no comments in this post yet.
  30. </p>
  31. {% endfor %}
  32. </div>
  33. <p>
  34. Click <a href="{% url 'index' %}">here</a> to go back
  35. </p>