diff options
Diffstat (limited to 'templates/layout.html')
-rw-r--r-- | templates/layout.html | 55 |
1 files changed, 45 insertions, 10 deletions
diff --git a/templates/layout.html b/templates/layout.html index 7325543..80b69a3 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -12,23 +12,58 @@ <script src="{{ url_for('static', filename='js/html5shiv.js') }}"></script> <script src="{{ url_for('static', filename='js/respond.min.js') }}"></script> <![endif]--> + + <link href="{{ url_for('static', filename='css/custom.css') }}" rel="stylesheet" media="screen"> </head> <body> <div class="container"> <div class="page-header"> <h1>{% block head %}{% endblock %}</h1> </div> + <nav class="navbar navbar-default" role="navigation"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + + <div class="nav navbar-left"> + <ol class="breadcrumb"> + <li{% if not breadcrumbs %} class="active"{% endif %}> + {% if breadcrumbs %}<a href="{{ url_for('index') }}">{% endif %} + Home + {% if breadcrumbs %}</a>{% endif %} + </li> + + {% for breadcrumb in breadcrumbs %} + <li{% if loop.last %} class="active"{% endif %}> + {% if not loop.last %}<a href="{{ breadcrumb.href }}">{% endif %} + {{breadcrumb.text}} + {% if not loop.last %}</a>{% endif %} + </li> + {% endfor %} + </ol> + </div> + </div> + + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right"> + {% if user %} + {% if user.admin %} + <li><a href="{{ url_for('admin.index') }}"><span class="glyphicon glyphicon-dashboard" /> Admin</a></li> + {% endif %} + + <li><a href="{{ url_for('auth.logout') }}"><span class="glyphicon glyphicon-user" /> Logout</a></li> + {% else %} + <li><a href="{{ url_for('auth.login') }}"><span class="glyphicon glyphicon-user" /> Login</a></li> + {% endif %} + </ul> + </div><!-- /.navbar-collapse --> + </nav> - <ol class="breadcrumb"> - <li{% if not group %} class="active"{% endif %}> - {% if group %}<a href="{{ url_for('index') }}">{% endif %} - Home - {% if group %}</a>{% endif %} - </li> - {% if group %} - <li class="active">{{group}}</li> - {% endif %} - </ol> {% for categorie, message in get_flashed_messages(with_categories=true) %} |