summaryrefslogtreecommitdiffstats
path: root/askbot/templates/question/answer_card.html
blob: 9d17e8c2a6f0743341603c33ff75de300201d410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<a name="{{ answer.id }}"></a>
{% if answer.old_answer_id %}
    {# Make old URL anchors/hashes work #}
    <a class="old_answer_id_anchor" name="{{ answer.old_answer_id }}"></a>
{% endif %}
<div
    id="post-id-{{ answer.id }}"
    data-post-id="{{ answer.id }}"
    class="post answer {{ macros.answer_classes(answer, question) }}"
>

    <div class="vote-buttons">
        {% include "question/answer_vote_buttons.html" %}
    </div>
    <div class="post-content">
        <div class="post-body">
            <div class="post-update-info-container">
                {% include "question/answer_author_info.html" %}
            </div>
            {% if answer.id in published_answer_ids %}
                <p><strong>{% trans %}This response is published{% endtrans %}</strong></p>
            {% endif %}
            {{ answer.html }}
        </div>
        <div class="answer-controls post-controls">
            {% include "question/answer_controls.html" %}
        </div>
        {% include "question/answer_comments.html" %}
    </div>
    <div class="clean"></div>
</div>
<div class="clean"></div>