{% extends 'base.html' %} {# 将当前页面继承至base.html模板 #} {% block content %}
{{article.headline}}
{% if is_favorited == True %} {% else %} {% endif %}
作者:{{article.nickname}}   类别:{{article_type[article.category | string]}}    日期:{{article.createtime}}    阅读:{{article.readcount}} 次   消耗积分:{{article.credit}} 分
{{article.content | safe}}
{% if article.credit > 0 and payed == False%}
{% if session.get('islogin') == 'true' %} {% else %} {% endif %}
{% endif %}
版权所有,转载本站文章请注明出处:蜗牛笔记, http://www.woniunote.com/article/{{article.articleid}}
上一篇:{{prev_next.prev_headline}}
下一篇:{{prev_next.next_headline}}
{% if session.get('islogin') == 'true' %} {% else %} {% endif %}
{% if session.get('islogin') == 'true' %} {% else %} {% endif %}
{% for comment in comment_list %}
{% if comment['nickname'] != None %} {{comment['nickname']}} {% else %} {{comment['username']}} {% endif %}    {{comment.createtime}}
{% if article.userid == session.get('userid') or session.get('role') == 'admin' or comment['userid'] == session.get('userid') %}     {% else %} {# 如果需要设计为匿名用户不能点赞,则继续判断是否为登录状态即可 #} {# {% elif session.get('islogin') != None %} #}         {% endif %}
{{comment.content}}
{% if comment['reply_list'] %} {% for reply in comment['reply_list'] %}
{{reply.nickname}}   回复   {{comment.nickname}}   {{reply.createtime}}
{% if article.userid == session.get('userid') or session.get('role') == 'admin' or comment['userid'] == session.get('userid') %} {% else %}     {% endif %}
{{reply.content}}
{% endfor %} {% endif %} {% endfor %}
{% include 'side.html' %} {% endblock %}