summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorashwinishinde2015-06-23 13:05:21 +0530
committerashwinishinde2015-06-23 13:05:21 +0530
commitfff3f3cc5623ea5fdd42da87ea1e54fb9a3d7aa7 (patch)
treefc5d7e575b00adca1b0cb11c1f72278e371ce0a7 /static
parentbf20363adec8afed8d8e10ad7e0b641c51568cff (diff)
downloadFOSSEE-Forum-fff3f3cc5623ea5fdd42da87ea1e54fb9a3d7aa7.tar.gz
FOSSEE-Forum-fff3f3cc5623ea5fdd42da87ea1e54fb9a3d7aa7.tar.bz2
FOSSEE-Forum-fff3f3cc5623ea5fdd42da87ea1e54fb9a3d7aa7.zip
Subject: Fixed bug from Registration page.
Description: 1) Integrity Error.
Diffstat (limited to 'static')
-rw-r--r--static/website/templates/get-question.html1
-rw-r--r--static/website/templates/questions.html13
2 files changed, 13 insertions, 1 deletions
diff --git a/static/website/templates/get-question.html b/static/website/templates/get-question.html
index 7c93803..67ac33a 100644
--- a/static/website/templates/get-question.html
+++ b/static/website/templates/get-question.html
@@ -34,6 +34,7 @@
<span class="vote-count-post" id="show_vote_count">
{{ net_count }}
</span>
+
{% ifequal thisUserDownvote 0 %}
<img src="{% static 'website/images/down1-off.png' %}" class="vote-down" title="This question does not show any research effort; it is not useful and unclear"/>
diff --git a/static/website/templates/questions.html b/static/website/templates/questions.html
index 96f596d..81c0d56 100644
--- a/static/website/templates/questions.html
+++ b/static/website/templates/questions.html
@@ -13,6 +13,17 @@
<th> Question <span class="glyphicon glyphicon-link"></span></th>
<th> Date</th>
<th> Views</th>
+ <div class="viewcount" id ="viewcount">
+ {% if num_votes == 0 %}
+ vote
+ {% elif num_votes == 1 %}
+ vote
+ {% elif num_votes == -1 %}
+ vote
+ {% else %}
+ votes
+ {% endif %}
+ </div>
<th> Answers</th>
<th> User</th>
{% for question in questions %}
@@ -49,7 +60,7 @@
<td>
{{ question.answer_set.count }}
</td>
-
+ <td>
<span class="title" data-toggle="tooltip" data-placement="top" title="{{ question.user }}">
{{ question.user|truncatechars:10 }}