simplify question card template
This commit is contained in:
parent
502534131b
commit
cade47b04a
1 changed files with 3 additions and 3 deletions
|
@ -27,14 +27,14 @@
|
|||
<span class="text-body-secondary cw-btn-chars">({{ len(answer.content) }} characters)</span>
|
||||
</button>
|
||||
{% else %}
|
||||
<div class="markdown-content" id="a-{{ question.id }}-content">{{ answer.content | render_markdown }}</div>
|
||||
{{ answer.content | render_markdown }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="card-footer pt-0 pb-0 ps-3 pe-1 text-body-secondary d-flex justify-content-between align-items-center{% if question.pinned %} border-2{% endif %}">
|
||||
<div>
|
||||
<span class="fs-6" data-bs-toggle="tooltip" data-bs-title="{{ answer.creation_date.strftime("%B %d, %Y %H:%M") }}">{{ formatRelativeTime(str(answer.creation_date)) }}</span>
|
||||
{% if question.pinned %}
|
||||
<span class="ms-1"><i class="bi bi-pin"></i> <span class="fw-medium">Pinned</span></span>
|
||||
<span class="ms-1 fw-medium"><i class="bi bi-pin"></i> Pinned</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="d-flex align-items-center">
|
||||
|
@ -119,7 +119,7 @@
|
|||
<div class="position-relative">
|
||||
<div class="card-header{% if question.pinned %} border-2{% endif %}">
|
||||
<div class="d-flex justify-content-between align-items-center flex-wrap text-break">
|
||||
<h3 class="h5 card-title mt-1 mb-1 markdown-content">
|
||||
<h3 class="h5 card-title mt-1 mb-1 markdown-content w-75">
|
||||
{% if question.from_who %}
|
||||
{{ question.from_who | render_markdown }}
|
||||
{% else %}
|
||||
|
|
Loading…
Add table
Reference in a new issue