You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<iclass="fa fa-chevron-up vote up-vote answer-vote {% if user in answer.get_up_voters %}voted{% endif %}" aria-hidden="true" title="{% trans 'Click to up vote; click again to toggle' %}"></i>
6
+
<iclass="fa fa-chevron-up vote up-vote answer-vote {% if request.user in answer.get_up_voters %}voted{% endif %}" aria-hidden="true" title="{% trans 'Click to up vote; click again to toggle' %}"></i>
<iclass="fa fa-chevron-down vote down-vote answer-vote {% if user in answer.get_down_voters %}voted{% endif %}" aria-hidden="true" title="{% trans 'Click to down vote; click again to toggle' %}"></i>
8
+
<iclass="fa fa-chevron-down vote down-vote answer-vote {% if request.user in answer.get_down_voters %}voted{% endif %}" aria-hidden="true" title="{% trans 'Click to down vote; click again to toggle' %}"></i>
9
9
{% if answer.is_answer and user == question.user %}
10
10
<iclass="fa fa-check accept accepted" aria-hidden="true" title="{% trans 'Click to unaccept the answer' %}"></i>
Copy file name to clipboardExpand all lines: bootcamp/templates/qa/question_detail.html
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,15 @@ <h1>{{ question.title }}</h1>
24
24
</div>
25
25
<divclass="row">
26
26
<divclass="col-md-2">
27
-
<divclass="question-info text-center">
27
+
<divclass="question-info options">
28
28
<h3>{{ question.count_answers }}</h3>
29
29
<smallclass="text-secondary">{% trans 'Answers' %}</small>
30
30
<h3>{{ question.count_likers }}</h3>
31
+
<ahref="#" style="text-decoration: none;"><h3><iclass="text-danger fa fa-heart{% if request.user not in question.get_likers %}-o{% endif %}" aria-hidden="true"></i></h3></a>
31
32
<smallclass="text-secondary">{% trans 'Likes' %}</small>
33
+
<iclass="fa fa-chevron-up vote up-vote answer-vote{% if request.user in question.get_upvoters %} voted{% endif %}" aria-hidden="true" title="{% trans 'Click to up vote; click again to toggle' %}"></i>
32
34
<h3>{{ question.count_votes }}</h3>
35
+
<iclass="fa fa-chevron-down vote down-vote answer-vote{% if request.user in question.get_downvoters %} voted{% endif %}" aria-hidden="true" title="{% trans 'Click to down vote; click again to toggle' %}"></i>
33
36
<smallclass="text-secondary">{% trans 'Votes' %}</small>
0 commit comments