/
thread_list.html
50 lines (41 loc) · 2.01 KB
/
thread_list.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{% extends "sphene/sphboard/listCategories.html" %}
{% load sph_extras %}
{% load sphboard_extras %}
{% load i18n %}
{% block stylesheets %}
{{ block.super }}
<style>
img.sphquestion {
display:block;
float: left;
margin-right: 0.5em; margin-top: 8px;
}
ul.sphquestions_icons li {
list-style-type: none;
margin: 0px;
}
</style>
{% endblock %}
{% block thread_list_subject %}
{% with thread.root_post.sphquestions_ext.get as qext %}
{% if qext.is_question %}
{% if qext.answered %}
{% ifequal qext.answered 3 %}
<img src="{{ MEDIA_URL }}sphene/sphquestions/icons/answered.png" width="16px" height="16px" alt="Answered (Voted by the author)" title="Answered (Voted by the author)" class="sphquestion" />
{% else %}
<img src="{{ MEDIA_URL }}sphene/sphquestions/icons/voted_answered.png" width="16px" height="16px" alt="Answered (Voted by a user)" title="Answered (Voted by a user)" class="sphquestion" />
{% endifequal %}
{% else %}
<img src="{{ MEDIA_URL }}sphene/sphquestions/icons/question_blue.png" width="16px" height="16px" alt="Unanswered question" title="Unanswered question" class="sphquestion" />
{% endif %}
{% endif %}
{% endwith %}
{{ block.super }}
{% endblock %}
{% block below_thread_list %}
<ul class="sphquestions_icons">
<li><img src="{{ MEDIA_URL }}sphene/sphquestions/icons/answered.png" width="16px" height="16px" alt="Answered (Voted by the author)" title="Answered (Voted by the author)" /> Answered question (Voted by the author of the question)</li>
<li><img src="{{ MEDIA_URL }}sphene/sphquestions/icons/voted_answered.png" width="16px" height="16px" alt="Answered (Voted by a user)" title="Answered (Voted by a user)" /> Answered question (Voted by another user but not by the author)</li>
<li> <img src="{{ MEDIA_URL }}sphene/sphquestions/icons/question_blue.png" width="16px" height="16px" alt="Unanswered question" title="Unanswered question" /> Unanswered question.</li>
</ul>
{% endblock %}