diff options
author | ficus <ficus@robocracy.org> | 2012-09-14 20:10:43 +0200 |
---|---|---|
committer | ficus <ficus@robocracy.org> | 2012-09-14 20:10:43 +0200 |
commit | a304d7a56563b16ca98d9b45ebed521c52f6347c (patch) | |
tree | da88f01977c08d9a149c3e767f1a7e62981500b9 /templates/base.html | |
download | tui-a304d7a56563b16ca98d9b45ebed521c52f6347c.tar.gz tui-a304d7a56563b16ca98d9b45ebed521c52f6347c.zip |
backup WIP
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..a2c1407 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,77 @@ +<!doctype html> +<html> +<head> + <title>torouter configuration interface</title> + <link href="/static/css/bootstrap.min.css" rel="stylesheet"> + <style type="text/css"> + body { + padding-top: 60px; + padding-bottom: 40px; + } + .sidebar-nav { + padding: 9px 0; + } + </style> +</head> +<body> + +<div class="navbar navbar-inverse navbar-fixed-top"> + <div class="navbar-inner"> + <div class="container-fluid"> + <a class="brand" href="#">torouter</a> + <div class="nav-collapse collapse"> + <p class="navbar-text pull-right"> + version 0.0 + </p> + </div><!--/.nav-collapse --> + </div> + </div> +</div> + +<div class="container-fluid"> + <div class="row-fluid"> + <div class="span3"> + <div class="well sidebar-nav"> + <ul class="nav nav-list"> +{% macro pagelink(path, name) -%} + <li {% if path == request.path %}class="active"{% endif %}><a href="{{path}}">{{name}}</a></li> +{%- endmacro %} + {{ pagelink("/", "Status") }} + {{ pagelink("/admin/", "Administration") }} + {{ pagelink("/reboot/", "Reboot...") }} + <li class="nav-header">Configuration</li> + {{ pagelink("/wan/", "Upstream") }} + {{ pagelink("/lan/", "Local") }} + {{ pagelink("/wireless/", "Wireless") }} + {{ pagelink("/tor/", "Tor") }} + <li class="nav-header">Monitoring</li> + {{ pagelink("/logs/", "Logs") }} + {{ pagelink("/processes/", "Processes") }} + </ul> + </div><!--/.well --> + </div><!--/span--> + <div class="span9"> + {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} + {% for category, message in messages %} + <div class="alert alert-{{ category }}"> + <button type="button" class="close" data-dismiss="alert">×</button> + {% if category == "warning" %}<strong>Warning:</strong>{% endif %} + {% if category == "error" %}<strong>Error:</strong>{% endif %} + {% if category == "info" %}<strong>Note:</strong>{% endif %} + {{ message }} + </div> + {% endfor %} + {% endif %} + {% endwith %} +{% block body %}{% endblock %} + </div><!--/span--> + </div><!--/row--> + <hr> + <footer> + <p>© torouter, copyleft 2012</p> + </footer> +</div><!--/.fluid-container--> + +</body> +</html> |