page_list.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <ul class="page-list-ul page-list-ul-flat">
  2. {% for data in pages %}
  3. {% if pagePropertyName %}
  4. {% set page = data[pagePropertyName] %}
  5. {% else %}
  6. {% set page = data %}
  7. {% endif %}
  8. <li>
  9. <img src="{{ page.lastUpdateUser|picture }}" class="picture rounded-circle">
  10. <a href="{{ page.path }}"
  11. class="page-list-link"
  12. data-path="{{ page.path }}">{{ decodeURIComponent(page.path) }}
  13. </a>
  14. <span class="page-list-meta">
  15. {% if page.isPortal() %}
  16. <span class="label label-info">PORTAL</span>
  17. {% endif %}
  18. {% if page.isTemplate() %}
  19. <span class="label label-info">TMPL</span>
  20. {% endif %}
  21. {% if page.commentCount > 0 %}
  22. <span>
  23. <i class="icon-bubble"></i>{{ page.commentCount }}
  24. </span>
  25. {% endif %}
  26. {% if page.liker.length > 0 %}
  27. <span class="page-list-liker" data-count="{{ page.liker.length }}">
  28. <i class="icon-like"></i>{{ page.liker.length }}
  29. </span>
  30. {% endif %}
  31. {% if viewConfig.seener_threshold and page.seenUsers.length >= viewConfig.seener_threshold %}
  32. <span class="page-list-seer" data-count="{{ page.seenUsers.length }}">
  33. <i class="fa fa-paw"></i>{{ page.seenUsers.length }}
  34. </span>
  35. {% endif %}
  36. {% if !page.isPublic() %}
  37. <span>
  38. <i class="icon icon-lock"></i>
  39. </span>
  40. {% endif %}
  41. </span>
  42. </li>
  43. {% endfor %}
  44. </ul>
  45. {% if pager %}
  46. <ul class="pagination">
  47. {% if pager.prev !== null %}
  48. <li class="prev"><a href="{{ path }}?offset={{ pager.prev }}"><i class="fa fa-arrow-left"></i> Prev</a></li>
  49. {% endif %}
  50. {% if pager.next %}
  51. <li class="next"><a href="{{ path }}?offset={{ pager.next }}">Next <i class="fa fa-arrow-right"></i></a></li>
  52. {% endif %}
  53. </ul>
  54. {% endif %}