page_list.html 1.9 KB

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