collect_list.html 1.2 KB

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