{% for post in posts %}
  • {% if current_user == post.author %} {{ post.title }} {% else %} {{ post.title }} {% endif %}
    {{ post.author.username }}
    {{ moment(post.update_timestamp).fromNow() }}
    {{ post.body }}
    文章详情 {% if current_user == post.author %} 编辑 {% elif current_user.is_administrator() %} 编辑 [Admin] {% endif %}
  • {% endfor %}