page_list.html 1.2 KB

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