collect_list.html 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. {% extends 'base/base.html' %}
  2. {% block content %}
  3. {% from 'collect/_macro.html' import collect_create %}
  4. {{ breadcrumb(active=_('My Collects'))}}
  5. <div class="row">
  6. <div class="col-md-9">
  7. <ul class="nav nav-tabs">
  8. <li role="presentation" class="active">{{ link.collectlist() }}</li>
  9. <li role="presentation">{{ link.following_collect() }}</li>
  10. </ul>
  11. <div class="panel panel-default">
  12. <div class="panel-heading">
  13. <button type="button" class="btn btn-sm btn-default" data-toggle="modal" data-target="#addcollect">{{_('Create Collect')}}</button>
  14. </div>
  15. {% for collect in collects.items %}
  16. <div class="panel-body" style="border-bottom:1px solid #eee">
  17. <a href="{{ url_for('topic.collect',collectId=collect.id)}}">{{ collect.name}}</a>
  18. {% if collect.privacy %}
  19. <span class="pull-right">{{_('Privacy')}}</span>
  20. {% else %}
  21. <span class="pull-right">{{_('Public')}}</span>
  22. {% endif %}
  23. </div>
  24. {% endfor %}
  25. {{ p_footer(collects,'topic.collectlist')}}
  26. </div>
  27. </div>
  28. <div class="col-md-3" style="padding-left:0">
  29. {{ panel_base.collect() }}
  30. </div>
  31. </div>
  32. {{ collect_create(form) }}
  33. {% endblock %}