alertlist answer for user -- ANSWERS -- h2 class answers Answer answer

 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
{% alertlist answer for user %}
<!-- ***** ANSWERS ***** -->
<h2 class="answers">Answer{{ answer_count|pluralize }} <span class="counter">({{ answer_count }})</span></h2>
<ul id="answer-list" class="alert-list">
{% for alert in answers %}
{% with alert.content_object as answer %}
{% if answer and answer.user %}
<li class="alert{% ifequal expanded_id alert.id %} expanded{% endifequal %}" id="alert-{{ alert.id }}" >
{% user_avatar_link answer.user %}
<div class="headers">
{% user_link answer.user "t3 c1" %}
<span class="date">{{ answer.created|timespan }}</span>
</div>
<div class="content" id="answer-{{ alert.id }}">
<a href="{{ answer.question.get_absolute_url }}" class="subject c1 t3">{{ answer.question.subject }}</a>
<p id="alert-{{ alert.id }}-full-text">{{ answer.answer|truncatetolen_withdots:140|usertext }}</p>
</div>
<div class="footer">
<a
href="{{ CURRENT_PATH }}#alert-{{ alert.id }}"
class="dismiss t1 c1"
id="alert-{{ alert.id }}-button">Dismiss</a>
</div>
</li>
{% endif %}
{% endwith %}
{% endfor %}
</ul>
{% endalertlist %}