notice.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {% import 'base/link.html' as link_base %}
  2. {% macro privacy(notice) -%}
  3. <small style="color:#999;">由{{ link_base.user(notice.send_user) }} 发来的私信:</small>
  4. <small class="pull-right">{{ notice.publish | timesince }}</small>
  5. <p style="margin-bottom:0px">{{ notice.content['content'] }}</p>
  6. {%- endmacro %}
  7. {% macro reply(notice) -%}
  8. {% set content = notice.content %}
  9. <small style="color:#999;"> {{ link_base.user(notice.send_user)}} 回复了你创建的主题:
  10. <a href="{{ content['url'] }}">{{ content['title'] }}</a>
  11. </small>
  12. <small class="pull-right"> {{ notice.publish | timesince }} </small>
  13. <p style="margin-bottom:0px">{{ content["content"] | safe_clean }}</p>
  14. {%- endmacro %}
  15. {% macro rereply(notice) -%}
  16. {% set content = notice.content %}
  17. <small style="color:#999;">
  18. {{ link_base.user(notice.send_user)}}在回复
  19. <a href="{{ content['url'] }}">{{ content['title'] }}</a>时提到了你
  20. </small>
  21. <small class="pull-right"> {{ notice.publish | timesince }} </small>
  22. <p style="margin-bottom:0px">{{ content["content"] | safe_clean }}</p>
  23. {%- endmacro %}
  24. {% macro collect(notice) -%}
  25. {% set content = notice.content %}
  26. <small style="color:#999;"> {{ link_base.user(notice.send_user)}} 收藏了你创建的主题:
  27. <a href="{{ content['url'] }}">{{ content['title'] }}</a>
  28. </small>
  29. <small class="pull-right"> {{ notice.publish | timesince }} </small>
  30. {%- endmacro %}
  31. {% macro like(notice) -%}
  32. {% set content = notice.content %}
  33. <small style="color:#999;"> {{ link_base.user(notice.send_user)}} 在
  34. <a href="{{ content['url'] }}">{{ content['title'] }}</a> 赞了你回复
  35. </small>
  36. <small class="pull-right"> {{ notice.publish | timesince }} </small>
  37. <p style="margin-bottom:0px">{{ content["content"] | safe_clean }}</p>
  38. {%- endmacro %}
  39. {% macro user(notice) -%}
  40. {% set content = notice.content %}
  41. <small style="color:#999;"> {{ link_base.user(notice.send_user)}} 关注了你 </small>
  42. <small class="pull-right"> {{ notice.publish | timesince }} </small>
  43. {%- endmacro %}