{% extends 'base/base.html' %} {% block script -%} {{ super() }} {%- endblock script %} {% block content %} {% set board = topic.board %} {% from 'base/paginate.html' import footer as p_footer %}

{{ topic.title}}

{{ votes(topic) }} {% for tag in topic.tags %} {{ link_base.tag(tag) }} {% endfor %} {% set last_reply = topic.replies.first() %} {{ link_base.user(topic.author.username )}} {{ _('published at %(time)s',time = topic.publish | timesince ) }} {% if last_reply %} ยท {{ _('The last reply published by %(author)s at %(time)s',author=link_base.user(last_reply.author.username),time=last_reply.publish | timesince)}} {% endif %}
{% if topic.is_markdown %} {{ topic.content | markdown }} {% else %} {{ topic.content | safe_clean }} {% endif %}
{% include 'topic/replies.html' %}
{% set ask_url = url_for('topic.ask',boardId=topic.board.id) %} {% include 'topic/panel.html' %} {{ panel_base.board() }}
{% endblock %} {% macro votes(topic) -%}
{% if topic.vote and topic.vote > 0 -%} {{ vote_a('up',topic.vote) }} {% else %} {{ vote_a('up') }} {%- endif %} {% if topic.vote and topic.vote < 0 %} {{ vote_a('down',topic.vote) }} {% else %} {{ vote_a('down') }} {%- endif %}
{%- endmacro %} {% macro vote_a(vo,count=None) -%} {% if count -%} {{ count }} {% else %} {%- endif %} {%- endmacro %}