diff options
Diffstat (limited to 'arduino_blog/templates/navbar.html')
-rw-r--r-- | arduino_blog/templates/navbar.html | 87 |
1 files changed, 42 insertions, 45 deletions
diff --git a/arduino_blog/templates/navbar.html b/arduino_blog/templates/navbar.html index a405e66..3dd68b4 100644 --- a/arduino_blog/templates/navbar.html +++ b/arduino_blog/templates/navbar.html @@ -1,54 +1,51 @@ {% load static %} <!-- Navigation --> {% block nav %} - <nav id="site-nav" class="navbar navbar-fixed-top navbar-custom"> - <div class="container"> - <div class="navbar-header"> - <!-- logo --> - <div class="site-branding"> - <a class="logo" href="{{SITE_URL}}"> - </a> - </div> - - <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-items" aria-expanded="false"> - <span class="sr-only">Toggle navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - - </div><!-- /.navbar-header --> - - <div class="collapse navbar-collapse" id="navbar-items"> - <ul class="nav navbar-nav navbar-right"> - - <!-- navigation menu --> - <li class="active"><a data-scroll href="{{SITE_URL}}/#about">About</a></li> - <li><a data-scroll href="{{SITE_URL}}/#contact-us">Contact Us</a></li> - {% if user.is_authenticated %} - <li class="dropdown"> - <a class="dropdown-toggle" data-toggle="dropdown" href="{% url 'auth:login' %}" > +<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> - {% if user.profile.is_email_verified %} - <ul class="dropdown-menu"> - <li><a href="{% url 'arduino_blog:submitabstract' %}">Submit Abstract</a></li> - <li><a href="{% url 'arduino_blog:user_logout' %}"><i class="fa fa-sign-out"></i> Logout</a></li> - </ul> - {% else %} - <ul class="dropdown-menu"> - <li><a href="{% url 'arduino_blog:user_logout' %}"><i class="fa fa-sign-out"></i> Logout</a></li> - </ul> - {% endif %} - </li> - {% else %} - <li><a href="{% url 'arduino_blog:user_login' %}">Login</a></li> - {% endif %} - </ul> + </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> Logout</a> + + {% else %} + <a href="{% url 'arduino_blog:user_logout' %}"><i class="fa fa-sign-out"></i> Logout</a> + + {% endif %} </div> - </div><!-- /.container --> - </nav> + </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 |