notice.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  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 collect(notice) -%}
  16. {% set content = notice.content %}
  17. <small style="color:#999;"> {{ link_base.user(notice.send_user)}} 收藏了你创建的主题:
  18. <a href="{{ content['url'] }}">{{ content['title'] }}</a>
  19. </small>
  20. <small class="pull-right"> {{ notice.publish | timesince }} </small>
  21. {%- endmacro %}
  22. {% macro like(notice) -%}
  23. {% set content = notice.content %}
  24. <small style="color:#999;"> {{ link_base.user(notice.send_user)}} 在
  25. <a href="{{ content['url'] }}">{{ content['title'] }}</a> 赞了你回复
  26. </small>
  27. <small class="pull-right"> {{ notice.publish | timesince }} </small>
  28. <p style="margin-bottom:0px">{{ content["content"] | safe_clean }}</p>
  29. {%- endmacro %}
  30. {% macro user(notice) -%}
  31. {% set content = notice.content %}
  32. <small style="color:#999;"> {{ link_base.user(notice.send_user)}} 关注了你 </small>
  33. <small class="pull-right"> {{ notice.publish | timesince }} </small>
  34. {%- endmacro %}