1- < header class ="site-header ">
2- <!-- Navigation -->
3- < nav class ="navbar navbar-default navbar-fixed-top " role ="navigation ">
4- < div class ="container ">
5- <!-- Brand and toggle get grouped for better mobile display -->
6- < div class ="navbar-header ">
7- < button type ="button " class ="navbar-toggle " data-toggle ="collapse " data-target ="#bs-example-navbar-collapse-1 ">
8- < span class ="sr-only "> Toggle navigation</ span >
9- < span class ="icon-bar "> </ span >
10- < span class ="icon-bar "> </ span >
11- < span class ="icon-bar "> </ span >
12- </ button >
13- < a class ="navbar-brand " href ="{{ url_for('main.home') }} "> {{ config.APP_NAME }}</ a >
14- </ div >
15- <!-- Collect the nav links, forms, and other content for toggling -->
16- < div class ="collapse navbar-collapse " id ="bs-example-navbar-collapse-1 ">
17- < ul class ="nav navbar-nav ">
18- < li > < a href ="{{ url_for('main.about') }} "> About</ a > </ li >
19- {% if current_user.is_authenticated %}
20- < li > < a href ="{{ url_for('user.members') }} "> Members</ a > </ li >
21- {% endif %}
22- </ ul >
23- < ul class ="nav navbar-nav navbar-right ">
24- {% if current_user.is_authenticated %}
25- < li > < a href ="{{ url_for('user.logout') }} "> Logout</ a > </ li >
26- {% else %}
27- < li > < a href ="{{ url_for('user.login') }} "> < span class ="glyphicon glyphicon-user "> </ span > Register/Login</ a > </ li >
28- {% endif %}
29- </ ul >
30- </ div >
31- <!-- /.navbar-collapse -->
32- </ div >
33- <!-- /.container -->
34- </ nav >
35- </ header >
1+ <!-- Navigation -->
2+ < nav class ="navbar fixed-top navbar-expand-lg navbar-dark bg-dark ">
3+ <!-- Navbar Brand -->
4+ < a class ="navbar-brand " href ="{{ url_for('main.home') }} "> {{ config.APP_NAME }}</ a >
5+ < button class ="navbar-toggler " type ="button " data-toggle ="collapse " data-target ="#navbarNav " aria-controls ="navbarNav " aria-expanded ="false " aria-label ="Toggle navigation ">
6+ < span class ="navbar-toggler-icon "> </ span >
7+ </ button >
8+ < div class ="collapse navbar-collapse " id ="navbarNav ">
9+ <!-- Main Navigation -->
10+ < ul class ="navbar-nav ">
11+ < li class ="nav-item active ">
12+ < a class ="nav-link " href ="{{ url_for('main.about') }} "> About < span class ="sr-only "> (current)</ span > </ a >
13+ </ li >
14+ {% if current_user.is_authenticated %}
15+ < li class ="nav-item ">
16+ < a class ="nav-link " href ="{{ url_for('user.members') }} "> Members</ a >
17+ </ li >
18+ {% endif %}
19+ </ ul >
20+ <!-- Login/Logout -->
21+ < ul class ="navbar-nav ml-auto ">
22+ < li class ="nav-item ">
23+ {% if current_user.is_authenticated %}
24+ < a class ="nav-link " href ="{{ url_for('user.logout') }} "> Logout</ a >
25+ {% else %}
26+ < a class ="nav-link " href ="{{ url_for('user.login') }} "> Login</ a >
27+ {% endif %}
28+ </ li >
29+ </ ul >
30+ </ div >
31+ </ nav >
0 commit comments