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.

30 lines
991 B

4 years ago
  1. {% extends 'base.html' %}
  2. {% from 'bootstrap/pagination.html' import render_pagination %}
  3. {% from 'macros.html' import user_card with context %}
  4. {% block title %}收藏者{% endblock %}
  5. {% block content %}
  6. <div class="page-header">
  7. <div class="row">
  8. <div class="col-md-12">
  9. <a class="btn btn-default btn-sm" href="{{ url_for('main.show_photo', photo_id=photo.id) }}">
  10. <span class="oi oi-arrow-left" aria-hidden="true"></span> 返回
  11. </a>
  12. </div>
  13. </div>
  14. </div>
  15. <div class="row">
  16. <div class="col-md-12">
  17. <h3>{{ photo.collectors|length }} 收藏者</h3>
  18. {% for collect in collects %}
  19. {{ user_card(user=collect.collector) }}
  20. {% endfor %}
  21. </div>
  22. </div>
  23. {% if collects %}
  24. <div class="page-footer">
  25. {{ render_pagination(pagination, align='center') }}
  26. </div>
  27. {% endif %}
  28. {% endblock %}