summaryrefslogtreecommitdiff
path: root/arduino_blog/templates/navbar.html
diff options
context:
space:
mode:
authorPrashant S2020-02-27 17:21:19 +0530
committerGitHub2020-02-27 17:21:19 +0530
commit61c91c743fabb5c31127e8f8a8109364eda9b8ff (patch)
treed7a1e70ff6bc1fe40ab580326bd92b6f6807e205 /arduino_blog/templates/navbar.html
parent802bbc270363d1432cb28cd88d6c9003d8b99b6c (diff)
parente1fe11723b0d064684137667ba40c32df34483ed (diff)
downloadarduino_projects_website-61c91c743fabb5c31127e8f8a8109364eda9b8ff.tar.gz
arduino_projects_website-61c91c743fabb5c31127e8f8a8109364eda9b8ff.tar.bz2
arduino_projects_website-61c91c743fabb5c31127e8f8a8109364eda9b8ff.zip
Merge pull request #1 from prashantsinalkar/master
updated ui and code
Diffstat (limited to 'arduino_blog/templates/navbar.html')
-rw-r--r--arduino_blog/templates/navbar.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/arduino_blog/templates/navbar.html b/arduino_blog/templates/navbar.html
new file mode 100644
index 0000000..3dd68b4
--- /dev/null
+++ b/arduino_blog/templates/navbar.html
@@ -0,0 +1,51 @@
+{% load static %}
+<!-- Navigation -->
+{% block nav %}
+<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
+ <a class="navbar-brand" href="/">Open Source Hardware Project </a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+ <div class="collapse navbar-collapse" id="navbarNavDropdown">
+ <ul class="navbar-nav ml-auto">
+ <li class="nav-item active">
+ <a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" href="{{SITE_URL}}/#about">About</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" href="{{SITE_URL}}/#contact-us">Contact</a>
+ </li>
+ {% if user.is_authenticated %}
+ <li class="nav-item">
+ <a class="nav-link" href="{% url 'arduino_blog:submitabstract' %}">Submit Abstract</a>
+ </li>
+ <li class="nav-item dropdown">
+ <a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown" href="{% url 'auth:login' %}" aria-haspopup="true" aria-expanded="false">
+ <i class="fa fa-user" aria-hidden="true"></i>
+ {{ user.username }}!<span class="caret"></span>
+ </a>
+ <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
+ {% if user.profile.is_email_verified %}
+
+
+ <a href="{% url 'arduino_blog:user_logout' %}"><i class="fa fa-sign-out"></i>&nbsp;Logout</a>
+
+ {% else %}
+ <a href="{% url 'arduino_blog:user_logout' %}"><i class="fa fa-sign-out"></i>&nbsp;Logout</a>
+
+
+ {% endif %}
+ </div>
+ </li>
+ {% else %}
+ <li class="nav-item">
+ <a class="nav-link" href="{% url 'arduino_blog:user_login' %}">Login</a>
+ </li>
+ {% endif %}
+ </ul>
+ </div>
+</nav>
+
+{% endblock %} \ No newline at end of file