diff options
author | ashwinishinde | 2015-03-30 11:15:28 +0530 |
---|---|---|
committer | ashwinishinde | 2015-03-30 11:15:28 +0530 |
commit | b36782ec5fed77fd3f185c699f2d8adff980d01e (patch) | |
tree | 07cc62d3ea1e1b5349b08a33d03e1885155a2fda /static/website | |
parent | a331b65a550e70424f0b799b1c90be0b0c688e85 (diff) | |
download | FOSSEE-Forum-b36782ec5fed77fd3f185c699f2d8adff980d01e.tar.gz FOSSEE-Forum-b36782ec5fed77fd3f185c699f2d8adff980d01e.tar.bz2 FOSSEE-Forum-b36782ec5fed77fd3f185c699f2d8adff980d01e.zip |
Subject: Display Notifications on Header for Answer's
and Comment's .. Red color
Description:
1) notification for answers and comments.
Diffstat (limited to 'static/website')
-rw-r--r-- | static/website/templates/base.html | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/static/website/templates/base.html b/static/website/templates/base.html index a2f2534..b174d69 100644 --- a/static/website/templates/base.html +++ b/static/website/templates/base.html @@ -56,27 +56,33 @@ </a> </li> {% if user.is_authenticated %} - <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown"> - <span class="glyphicon glyphicon-user"></span> - {{ user }}<b class="caret"></b> - </a> - <ul class="dropdown-menu"> - <li><a href="{% url 'website:user_questions' user.id %}">My Questions</a></li> - <li><a href="{% url 'website:user_answers' user.id %}">My Answers</a></li> - <li> + <li> <a href="{% url 'website:user_notifications' user.id %}"> Notifications - <span class="badge" style="background:#a26dc8; color:#ffffff;"> + <span class="badge" style="background:#ec0b16; color:#ffffff;"> {% load notify %} {% notification_count user.id %} </span> </a> - </li> + </li> + + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"> + <span class="glyphicon glyphicon-user"></span> + {{ user }}<b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <li><a href="{% url 'website:user_questions' user.id %}">My Questions + + </a></li> + <li><a href="{% url 'website:user_answers' user.id %}">My Answers + + </a></li> + <li class="divider"></li> <li><a href="{% url 'user_logout' %}">Logout</a></li> </ul> - </li> <!-- /li.dropdown --> + </li> {% else %} <li> <a href="{% url 'user_login' %}"> |