following_topic.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% extends 'base/base.html' %}
  2. {% block content %}
  3. {{ breadcrumb(active=_('Following Topics'))}}
  4. <div class="row">
  5. <div class="col-md-9">
  6. <ul class="nav nav-tabs follow-panel">
  7. <li role="presentation" class="active">{{ link_base.following_topic()}}</li>
  8. <li role="presentation">{{ link_base.following_tag()}}</li>
  9. <li role="presentation">{{ link_base.following_user()}}</li>
  10. <li role="presentation">{{ link_base.following_collect()}}</li>
  11. </ul>
  12. <div class="panel panel-default">
  13. {% if not following.items -%}
  14. {% include 'follow/none.html' %}
  15. {%- else %}
  16. {% for topic in following.items %}
  17. <div class="panel-body" style="border-bottom:1px solid #eee">
  18. <span class="pull-right">
  19. <button class="btn btn-sm btn-default topicfollow active" id="{{ topic.id}}" style="padding:0 5px">取消关注</button>
  20. </span>
  21. <p>{{ link_base.topic(topic)}}</p>
  22. <p class="topic-content">
  23. {% if topic.is_markdown %}
  24. {{ topic.content | truncate(100, True) | markdown }}
  25. {% else %}
  26. {{ topic.content | truncate(100, True) | safe_clean }}
  27. {% endif %}
  28. </p>
  29. {% for tag in topic.tags %}
  30. {{ link_base.tag(tag)}}
  31. {% endfor %}
  32. </div>
  33. {% endfor %}
  34. {{ p_footer(following,'mine.follow',kw=dict(type=following_type))}}
  35. {%- endif %}
  36. </div>
  37. </div>
  38. <div class="col-md-3" style="padding-left:0">
  39. {{ panel_base.follow() }}
  40. </div>
  41. </div>
  42. {% endblock %}