summaryrefslogtreecommitdiff
path: root/yaksh/templates/user.html
diff options
context:
space:
mode:
authoradityacp2020-12-15 20:18:31 +0530
committeradityacp2020-12-15 20:18:31 +0530
commit3e217025d6130fbbed8fe239b045519a3a7d0f4b (patch)
tree874d9854f5a537a927bb25f37573081e6ca8f141 /yaksh/templates/user.html
parent9bbaae821f73a3ea16af92fd6b41cd9e86f00763 (diff)
downloadonline_test-3e217025d6130fbbed8fe239b045519a3a7d0f4b.tar.gz
online_test-3e217025d6130fbbed8fe239b045519a3a7d0f4b.tar.bz2
online_test-3e217025d6130fbbed8fe239b045519a3a7d0f4b.zip
Add new UI over bootstrap
Diffstat (limited to 'yaksh/templates/user.html')
-rw-r--r--yaksh/templates/user.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html
index 7211d5c..40a5edd 100644
--- a/yaksh/templates/user.html
+++ b/yaksh/templates/user.html
@@ -15,6 +15,16 @@
<li class="nav-item"><a class="nav-link" href="{% url 'yaksh:index' %}"><i class="fa fa-home" style="size: 18px"></i>&nbsp;Home</a></li>
</ul>
<ul class="navbar-nav ml-auto">
+ <li class="nav-item">
+ <a class="nav-link" href="{% url 'yaksh:view_notifications' %}">
+ <i class="fa fa-bell" style="size: 18px"></i>&nbsp;Notifications
+ {% if request.custom_notifications > 0 %}
+ <span class="badge badge-success badge-pill">
+ {{request.custom_notifications}}
+ </span>
+ {% endif %}
+ </a>
+ </li>
<li class="nav-item dropdown my-lg-0" style="font-size: 1.2rem">
<a class="dropdown-toggle nav-link" id="user_dropdown" data-toggle="dropdown" href="#">{{user.get_full_name|title}}
</a>
@@ -43,14 +53,6 @@
</nav>
</div>
{% endblock %}
-<script type="text/javascript">
- $(document).ready(function() {
- $(".alert").delay(2000).slideUp(200, function() {
- $(this).alert('close');
- });
- });
-</script>
-
{% block content %}
{% block main %}
{% block navtab %}