Mercurial > farol > farol
view farol/templates/layout.j2 @ 140:3a56d5501ffa
Add HTTP error handling
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 27 Oct 2014 16:46:18 +0100 |
parents | farol/templates/base.j2@67c4b299736e |
children | 97fafc195ca0 |
line wrap: on
line source
{# # Description: # Web Template used in Farol Design # # Authors: # BenoĆ®t Allard <benoit.allard@greenbone.net> # # Copyright: # Copyright (C) 2014 Greenbone Networks GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. -#} {% from "macros.j2" import modal, POST_button -%} <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Farol - {% block title %}{% endblock %}</title> <link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> </head> <body> <script src="{{ url_for('static', filename='jquery-2.1.1.min.js') }}"></script> <script src="{{ url_for('static', filename='bootstrap.js') }}"></script> <nav class="navbar navbar-inverse" role="navigation"> <div class="container"> {# Brand and toggle get grouped for better mobile display #} <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> <a class="navbar-brand" href="{{ url_for('welcome') }}" title="A Security Advisory Management Platform">Farol</a> </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"> <li{% if active == 'new' %} class="active"{% endif %}><a href="{{ url_for('new') }}">New</a></li> {% block navbar %} {% endblock %} </ul> <ul class="nav navbar-nav navbar-right"> {% block navbar_right %} {% endblock %} </ul> </div>{# /.navbar-collapse #} </div>{# /.container-fluid #} </nav> <div class="main container"> {% block pre_content %}{% endblock %} <div> {% block content %}{% endblock %} </div> {% block post_content %}{% endblock %} </div> <footer class="footer container-fluid navbar-inverse"> <div class="text-center"> <span class="text-muted">Copyright © 2014 Greenbone Networks GmbH</span> | <span><a href="{{ url_for('about') }}">About Farol</a></span> </div> <a href="http://greenbone.net/" id="greenbone" class="logo_img text-hide center-block">Greenbone Networks GmbH</a> </footer> </body> </html>