diff options
author | ashwinishinde | 2015-05-08 12:05:29 +0530 |
---|---|---|
committer | ashwinishinde | 2015-05-08 12:05:29 +0530 |
commit | 8cf7e60d250f8f6f43d7f66ed7b96e451f379502 (patch) | |
tree | 62eff3f8567934480896afb63819191d3999513f /static/website | |
parent | 20998fcb52d55b25da2f63965c98e7b171d4f1ed (diff) | |
download | FOSSEE-Forum-8cf7e60d250f8f6f43d7f66ed7b96e451f379502.tar.gz FOSSEE-Forum-8cf7e60d250f8f6f43d7f66ed7b96e451f379502.tar.bz2 FOSSEE-Forum-8cf7e60d250f8f6f43d7f66ed7b96e451f379502.zip |
Subject:Navigate to answer for Notification link
Description:
1) Once you get answered notication for your question
it redirect to answer.
Diffstat (limited to 'static/website')
-rw-r--r-- | static/website/templates/filter.html | 1 | ||||
-rw-r--r-- | static/website/templates/notify.html | 10 |
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 --> |