aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html75
1 files changed, 0 insertions, 75 deletions
diff --git a/templates/base.html b/templates/base.html
deleted file mode 100644
index 4c15c73..0000000
--- a/templates/base.html
+++ /dev/null
@@ -1,75 +0,0 @@
-<!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("/reboot/", "Reboot...") }}
- <li class="nav-header">Configuration</li>
- {{ pagelink("/wan/", "Upstream Ethernet") }}
- {{ pagelink("/lan/", "Local Ethernet") }}
- {{ pagelink("/wifi/", "WiFi") }}
- {{ pagelink("/tor/", "Tor Network") }}
- <li class="nav-header">Monitoring</li>
- {{ pagelink("/logs/", "Logs") }}
- {{ pagelink("/processes/", "Processes") }}
- </ul>
- </div><!--/.well -->
- </div><!--/span-->
- <div class="span9">
- {% if messages %}
- {{ mesages }}
- {% 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 %}
-{% block body %}{% endblock %}
- </div><!--/span-->
- </div><!--/row-->
- <hr>
- <footer>
- <p>&copy; torouter, copyleft 2012</p>
- </footer>
-</div><!--/.fluid-container-->
-
-</body>
-</html>