summaryrefslogtreecommitdiff
path: root/static/website/templates/navbar.html
diff options
context:
space:
mode:
authorprashantsinalkar2018-08-15 23:34:30 +0530
committerprashantsinalkar2018-08-15 23:34:30 +0530
commit799dc3f03791ed17cf8ce58faa0b98a4beba0697 (patch)
treec09d3c20b145ef29040184fccbcfde87cab4b427 /static/website/templates/navbar.html
parentd8391b8f8b5681e235278d8bbd15939420087bf4 (diff)
downloadSciPy2018-799dc3f03791ed17cf8ce58faa0b98a4beba0697.tar.gz
SciPy2018-799dc3f03791ed17cf8ce58faa0b98a4beba0697.tar.bz2
SciPy2018-799dc3f03791ed17cf8ce58faa0b98a4beba0697.zip
added user status
Diffstat (limited to 'static/website/templates/navbar.html')
-rw-r--r--static/website/templates/navbar.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/static/website/templates/navbar.html b/static/website/templates/navbar.html
index 140a196..14a8ccd 100644
--- a/static/website/templates/navbar.html
+++ b/static/website/templates/navbar.html
@@ -30,15 +30,20 @@
<ul class="nav navbar-nav navbar-right">
<!-- navigation menu -->
- <li class="active"><a data-scroll href="#about">About</a></li>
+ <li class="active"><a data-scroll href="{{SITE_URL}}/#about">About</a></li>
<li><a data-scroll href="{{SITE_URL}}/#speakers">Speakers</a></li>
<li><a data-scroll href="{{SITE_URL}}/#schedule">Schedule</a></li>
<li><a data-scroll href="{{SITE_URL}}/#sponsor">Sponsor</a></li>
<li><a data-scroll href="{{SITE_URL}}/#faq">FAQ</a></li>
<li><a data-scroll href="{{SITE_URL}}/#photos">Photos</a></li>
<li><a data-scroll href="{{SITE_URL}}/#team">Team</a></li>
- <li><a data-scroll href="#">Login</a></li>
-
+ {% if user.is_authenticated %}
+ <li><a href="{% url 'login' %}"><i class="fa fa-user" aria-hidden="true"></i>
+ {{ user.username }}!</a></li>
+ <li><a href="{% url 'logout' %}">logout</a></li>
+ {% else %}
+ <li><a href="{% url 'login' %}">login</a></li>
+ {% endif %}
</ul>
</div>
</div><!-- /.container -->