diff --git a/templates/view_question.html b/templates/view_question.html index f70e853..06917a1 100644 --- a/templates/view_question.html +++ b/templates/view_question.html @@ -1,26 +1,50 @@ {% extends 'base.html' %} -{% block title %}{{ trimContent(question.content, 30) }} - {{ trimContent(answer.content, 30) }}{% endblock %} +{% block title %}{{ trimContent(question.content, cfg.trimContentAfter) }} - {{ trimContent(answer.content, cfg.trimContentAfter) }}{% endblock %} +{% block additionalHeadItems %} + +{% endblock %} {% block content %}
-
-
-
-
{% if question.from_who %}{{ question.from_who }}{% else %} {{ cfg.anonName }}{% endif %}
-
{{ formatRelativeTime(str(question.creation_date)) }}
+ {#
+
+
+
+

+ {% if question.from_who %} + {{ question.from_who | render_markdown }} + {% else %} + {{ cfg.anonName }} + {% endif %} +

+

{{ formatRelativeTime(str(question.creation_date)) }}

+
+ {% include 'snippets/q-card-text.html' %}
-
{{ question.content | render_markdown }}
+ {% if answer.cw %} +
{{ answer.cw | render_markdown }}
+
+ {{ answer.content | render_markdown }} +
+ + {% else %}
{{ answer.content | render_markdown }}
+ {% endif %}
+
#} + {% with answers=answer %} + {% include 'snippets/layout/question_card.html' %} + {% endwith %}
{% endblock %} {% block scripts %} +