collect.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div class="panel panel-default">
  2. <div class="panel-heading clearfix">
  3. <span style="float:right">
  4. 排序:
  5. <div class="btn-group btn-group-xs" role="group">
  6. <a href="" class="btn btn-default active">时间</a>
  7. <a href="" class="btn btn-default">投票</a>
  8. </div>
  9. </span>
  10. </div>
  11. {% if collects.items %}
  12. {% if setting.collect_list == 1 or (setting.collect_list == 2 and g.user.is_authenticated) or (g.user.is_authenticated and g.user.username == g.user_url) %}
  13. {% for collect in collects.items %}
  14. <div class="panel-body" style="border-bottom:1px solid #eee">
  15. <div class="row" style="margin:0">
  16. <div class="col-md-9">
  17. {{ link_base.collect(collect) }}
  18. </div>
  19. <div class="col-md-2">
  20. {{ collect.is_privacy }}
  21. </div>
  22. <div class="col-md-1">
  23. 1
  24. </div>
  25. </div>
  26. </div>
  27. {% endfor %}
  28. {{ p_footer(collects,'user.collect')}}
  29. {% else %}
  30. <div class="panel-body" style="border:1px dashed #337ab7;margin:5px;">
  31. <span class="text-center" style="display:block;width:100%;color:#999">
  32. <span class="glyphicon glyphicon-lock" aria-hidden="true" style="font-size:16px;"></span>
  33. 根据用户设置,列表被隐藏
  34. </span>
  35. </div>
  36. {% endif %}
  37. {% else %}
  38. <div class="panel-body text-center">
  39. 没有收藏
  40. </div>
  41. {% endif %}
  42. </div>