KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

view.twig 1.6KB

9 years ago
123456789101112131415161718192021222324252627282930
  1. {% extends "layouts/default.twig" %}
  2. {% block content %}
  3. {% if not post.next.no_results %}<a class="right next_post" href="$post.next.url">${ post.next.title | truncate(40) } &rarr;</a>{% endif %}
  4. {% if not post.prev.no_results %}<a class="left prev_post" href="$post.prev.url">&larr; ${ post.prev.title | truncate(40) }</a>{% endif %}
  5. <div class="clear"></div>
  6. {% include "feathers/" ~ post.feather ~ ".twig" %}
  7. {% if enabled_modules.comments and (post.comment_count > 0 or post.commentable) %}
  8. <h2 class="comments">${ "Comments" | translate }</h2>
  9. <ol class="comments" id="comments_$post.id">
  10. {% paginate site.comments_per_page comments in post.comments as comment %}
  11. {% include "content/comment.twig" %}
  12. {% else %}
  13. <li class="no_comments"></li> {# Needed for AJAX commenting and XHTML Strict validation. #}
  14. {% endpaginate %}
  15. </ol>
  16. $comments.prev_link
  17. $comments.next_link
  18. {% if comments.pages > 1 %}
  19. <span class="pages">${ "Page %d of %d" | translate | format(comments.page, comments.pages) }</span>
  20. {% endif %}
  21. {% if post.commentable %}
  22. {% include "forms/comment/new.twig" %}
  23. {% endif %}
  24. {% if post.comment_status == "closed" %}
  25. ${ "Comments are not accepted on this entry." | translate }
  26. {% endif %}
  27. <br />
  28. {% endif %}
  29. {% endblock %}