feed.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {% load i18n %}
  2. <ul class="posts-list ui-ready">
  3. {% for post in posts %}
  4. <li id="post-{{ post.pk }}" class="post post-infeed {% if post.is_new %}post-new{% endif %}">
  5. <div class="post-border">
  6. <div class="post-body">
  7. <div class="panel panel-default panel-post">
  8. <div class="panel-heading post-heading">
  9. <a href="{{ post.thread.get_absolute_url }}" class="item-title">
  10. {{ post.thread.title }}
  11. </a>
  12. <a href="{{ post.get_absolute_url }}" class="posted-on">
  13. {% blocktrans trimmed with posted_on=post.posted_on|date:'DATETIME_FORMAT' %}
  14. posted on {{ posted_on }}
  15. {% endblocktrans %}
  16. </a>
  17. <div class="pull-right">
  18. <a href="{{ post.get_absolute_url }}" class="btn btn-default btn-sm">
  19. {% trans "Go to post" %}
  20. </a>
  21. </div>
  22. </div>
  23. {% if post.is_valid %}
  24. <div class="panel-body">
  25. <article class="misago-markup">
  26. {{ post.content|safe }}
  27. </article>
  28. </div>
  29. {% else %}
  30. <div class="panel-body panel-body-invalid">
  31. <p class="lead">{% trans "This post's contents cannot be displayed." %}</p>
  32. <p class="text-muted">{% trans "This error is caused by invalid post content manipulation." %}</p>
  33. </div>
  34. {% endif %}
  35. </div>
  36. </div>
  37. </div>
  38. </li>
  39. {% endfor %}
  40. </ul>