From 3b19d27fad4b8aa15d2cfea63510f29bdaca524f Mon Sep 17 00:00:00 2001 From: mst Date: Fri, 28 Feb 2025 07:24:03 +0300 Subject: [PATCH] some question card style changes --- templates/snippets/layout/question_card.html | 49 +++++++++++--------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/templates/snippets/layout/question_card.html b/templates/snippets/layout/question_card.html index a4662da..b7c20a9 100644 --- a/templates/snippets/layout/question_card.html +++ b/templates/snippets/layout/question_card.html @@ -3,48 +3,51 @@
-

+

{% if question.from_who %} {{ render_markdown(question.from_who, fromWho=True) }} {% else %} - {{ cfg.anonName }} + {{ cfg.anonName }} {% endif %}

-

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

+

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

{% with question=question %} {% include 'snippets/q-card-text.html' %} {% endwith %}
-
+
{% if answer.cw %}
{{ answer.cw | render_markdown }}
{{ answer.content | render_markdown }}
{% else %} {{ answer.content | render_markdown }} {% endif %}
-