page_list.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <ul class="page-list-ul">
  2. {% for page in pages %}
  3. <li class="page-list-li">
  4. <img src="{{ page.revision.author|picture }}" class="picture picture-rounded">
  5. <a class="page-list-link" href="{{ page.path }}"
  6. data-path="{{ page.path }}"
  7. data-short-path="{{ page.path|path2name }}">{{ page.path }}</a>
  8. <span class="page-list-meta">
  9. {% if page.isPortal() %}
  10. <span class="label label-info">PORTAL</span>
  11. {% endif %}
  12. {% if page.commentCount > 0 %}
  13. <i class="fa fa-comment"></i>{{ page.commentCount }}
  14. {% endif %}
  15. {% if !page.isPublic() %}
  16. <i class="fa fa-lock"></i>
  17. {% endif %}
  18. </span>
  19. </li>
  20. {% endfor %}
  21. </ul>
  22. {% if pager %}
  23. <ul class="pagination">
  24. {% if pager.prev !== null %}
  25. <li class="prev"><a href="{{ path }}?offset={{ pager.prev }}&limit={{ pager.limit }}"><i class="fa fa-arrow-left"></i> Prev</a></li>
  26. {% endif %}
  27. {% if pager.next %}
  28. <li class="next"><a href="{{ path }}?offset={{ pager.next }}&limit={{ pager.limit }}">Next <i class="fa fa-arrow-right"></i></a></li>
  29. {% endif %}
  30. </ul>
  31. {% endif %}