summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/website/templates/filter.html1
-rw-r--r--static/website/templates/notify.html10
2 files changed, 6 insertions, 5 deletions
diff --git a/static/website/templates/filter.html b/static/website/templates/filter.html
index c444e78..d0c57f0 100644
--- a/static/website/templates/filter.html
+++ b/static/website/templates/filter.html
@@ -27,7 +27,6 @@
<table class="table table-bordered">
<th> FOSS </th>
- <!--<th> Tutorial</th>-->
<th> Question</th>
<th> Date</th>
<th> Views</th>
diff --git a/static/website/templates/notify.html b/static/website/templates/notify.html
index a98d21a..2ea55c5 100644
--- a/static/website/templates/notify.html
+++ b/static/website/templates/notify.html
@@ -1,15 +1,17 @@
<div class="notification">
+
{% if notification.cid != 0 and notification.aid != 0 %}
<small>
- <a href="">New <strong>Comment</strong> on "{{ question.title }}"</a>
+ <a href="{% url 'website:get_question' answer.question.id %}#answer{{ answer.id }}">New <strong>Comment</strong> on "{{ question.title }}"</a>
</small>
+
{% elif notification.cid == 0 %}
- <a href="">New <strong>Answer</strong> on "{{ question.title }}"</a>
+
+ <a href="{% url 'website:get_question' answer.question.id %}#answer{{ answer.id }}"+ >New <strong>Answer</strong> on <strong>"{{ question.title }}"</strong></a>
{% endif %}
- <!-- <a href=""><strong>{{ answer.user }}</strong> answers to <strong>{{ question.title }}</strong></a> -->
- <a class="remove" data-nid="{{ notification.id }}" href="#">
+ <a class="remove" data-nid="{{ notification.id }}" href= "">
<span class="glyphicon glyphicon-remove-circle"></span>
</a>
</div> <!-- /.notification -->