aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/src/tui
diff options
context:
space:
mode:
authorJacob Appelbaum <jacob@appelbaum.net>2011-08-23 15:20:12 +0200
committerJacob Appelbaum <jacob@appelbaum.net>2011-08-23 15:20:12 +0200
commit5c61f445926f1420f61e509cea51dc7a24e1b0b5 (patch)
tree9c4d8eed750c673db7cfb5fa697765e6b55d4f67 /packages/torouter-web/src/tui
parent3dd720f3d17b946481ab59ec191bf17cafec50e5 (diff)
parentb54039300353ad6bfb59e6668f03fe9e1745c763 (diff)
downloadtorouter-5c61f445926f1420f61e509cea51dc7a24e1b0b5.tar.gz
torouter-5c61f445926f1420f61e509cea51dc7a24e1b0b5.zip
Merge branch 'master' of ssh://git-rw.torproject.org/torouter
Diffstat (limited to 'packages/torouter-web/src/tui')
-rw-r--r--packages/torouter-web/src/tui/view.py5
-rw-r--r--packages/torouter-web/src/tui/views/base.html55
2 files changed, 58 insertions, 2 deletions
diff --git a/packages/torouter-web/src/tui/view.py b/packages/torouter-web/src/tui/view.py
index 0252ad8..ea885be 100644
--- a/packages/torouter-web/src/tui/view.py
+++ b/packages/torouter-web/src/tui/view.py
@@ -1,3 +1,4 @@
+import os
import web
from tui import config
@@ -5,7 +6,9 @@ t_globals = dict(
datestr=web.datestr,
)
+# get the path where the script currently resides
+current_path = "/".join(os.path.abspath(__file__).split("/")[:-1])
# create the render object
-render = web.template.render('tui/views', cache=config.cache, globals=t_globals)
+render = web.template.render(current_path+'/views', cache=config.cache, globals=t_globals)
render._keywords['globals']['render'] = render
diff --git a/packages/torouter-web/src/tui/views/base.html b/packages/torouter-web/src/tui/views/base.html
index bce4110..5db0249 100644
--- a/packages/torouter-web/src/tui/views/base.html
+++ b/packages/torouter-web/src/tui/views/base.html
@@ -5,7 +5,60 @@ $def with (page,submenu=None)
<html>
<head>
<title>TUI - Tor Web User Interface</title>
- <link REL="stylesheet" href="/static/main.css" type="text/css">
+<style type="text/css">
+/* Clear all */
+body { margin: 0;border: 0;padding: 0; }
+
+div.wrapper {
+ min-height: 300px;
+ width: 800px;
+ margin: 0 auto;
+}
+
+div.footer {
+ text-align: center;
+ background-color: #333;
+ color: white;
+ padding-top: 20px;
+ padding-bottom: 20px;
+}
+
+div.header {
+ color: white;
+}
+
+div.header ul {
+ list-style: none;
+ height: 20px;
+}
+
+div.header ul li {
+ font-size: 20px;
+ float: left;
+ padding: 5px 10px;
+}
+
+div.header ul#submenu li {
+ font-size: 15px;
+}
+
+div.header ul#submenu li a.sel {
+ color: black;
+ text-decoration: none;
+}
+
+/* More specific stuff */
+#torrc {
+list-style: none;
+line-height: 2em;
+}
+
+#torrc em {
+font-weight: bold;
+font-style: normal;
+}
+</style>
+<!-- link REL="stylesheet" href="/static/main.css" type="text/css" -->
</head>
<body>
<div class="header">