diff options
author | Arturo FilastoĢ <hellais@torproject.org> | 2011-08-17 19:38:47 +0200 |
---|---|---|
committer | Arturo FilastoĢ <hellais@torproject.org> | 2011-08-17 19:38:47 +0200 |
commit | e14cf93e2c93e94c00d55d51ffc8ca26e063377c (patch) | |
tree | 3566a2d7eda080fd376d88d274b2af5eb6f3006a /packages/torouter-web/src/tui/views | |
parent | 4a55d3546be8f0444b12d634ccf01c5a107d46eb (diff) | |
parent | 57e54f969b840546925d16ceceb130a0f3927140 (diff) | |
download | torouter-e14cf93e2c93e94c00d55d51ffc8ca26e063377c.tar.gz torouter-e14cf93e2c93e94c00d55d51ffc8ca26e063377c.zip |
Merge branch 'master' of ssh://git-rw.torproject.org/torouter
Diffstat (limited to 'packages/torouter-web/src/tui/views')
-rw-r--r-- | packages/torouter-web/src/tui/views/base.html | 30 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/firewall.html | 7 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/index.html | 1 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/login.html | 7 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/logout.html | 1 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/main.html | 1 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/saved.html | 8 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/status.html | 3 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/torconfig.html | 1 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/torstatus.html | 3 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/wired.html | 7 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/wireless.html | 8 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/wizard.html | 12 |
13 files changed, 89 insertions, 0 deletions
diff --git a/packages/torouter-web/src/tui/views/base.html b/packages/torouter-web/src/tui/views/base.html new file mode 100644 index 0000000..bce4110 --- /dev/null +++ b/packages/torouter-web/src/tui/views/base.html @@ -0,0 +1,30 @@ +$def with (page,submenu=None) + +<!html> + +<html> +<head> + <title>TUI - Tor Web User Interface</title> + <link REL="stylesheet" href="/static/main.css" type="text/css"> +</head> +<body> +<div class="header"> + <ul id="menu"> + <li><a href="/">Home</a></li> + <li><a href="/network">Network</a></li> + <li><a href="/tor">Tor</a></li> + <li><a href="/logout">logout</a></li> + </ul> + $:submenu +</div> + +<div class="wrapper"> +$:page +</div> + +<div class="footer"> +2011 - The Tor Project +</div> + +</body> +</html> diff --git a/packages/torouter-web/src/tui/views/firewall.html b/packages/torouter-web/src/tui/views/firewall.html new file mode 100644 index 0000000..30f5a9b --- /dev/null +++ b/packages/torouter-web/src/tui/views/firewall.html @@ -0,0 +1,7 @@ +$def with (form) + +<h2>Firewall configuration page</h2> + +<form action="" method="POST"> +$:form.render() +</form> diff --git a/packages/torouter-web/src/tui/views/index.html b/packages/torouter-web/src/tui/views/index.html new file mode 100644 index 0000000..3907d84 --- /dev/null +++ b/packages/torouter-web/src/tui/views/index.html @@ -0,0 +1 @@ +The main index diff --git a/packages/torouter-web/src/tui/views/login.html b/packages/torouter-web/src/tui/views/login.html new file mode 100644 index 0000000..1377078 --- /dev/null +++ b/packages/torouter-web/src/tui/views/login.html @@ -0,0 +1,7 @@ +Login is required +<form method="POST" action="/"> + Login: <input type="text" name="user"> + Password: <input type="password" name="password"> + <input type="submit" name="login"> +</form> + diff --git a/packages/torouter-web/src/tui/views/logout.html b/packages/torouter-web/src/tui/views/logout.html new file mode 100644 index 0000000..f027ed4 --- /dev/null +++ b/packages/torouter-web/src/tui/views/logout.html @@ -0,0 +1 @@ +Successfully logged out! diff --git a/packages/torouter-web/src/tui/views/main.html b/packages/torouter-web/src/tui/views/main.html new file mode 100644 index 0000000..dc503e7 --- /dev/null +++ b/packages/torouter-web/src/tui/views/main.html @@ -0,0 +1 @@ +the main page diff --git a/packages/torouter-web/src/tui/views/saved.html b/packages/torouter-web/src/tui/views/saved.html new file mode 100644 index 0000000..ba14488 --- /dev/null +++ b/packages/torouter-web/src/tui/views/saved.html @@ -0,0 +1,8 @@ +$def with (content) + +<ul> + +$for i in content.items(): + <li><em>$i[0]</em>: $i[1]</li> + +</ul> diff --git a/packages/torouter-web/src/tui/views/status.html b/packages/torouter-web/src/tui/views/status.html new file mode 100644 index 0000000..bfe2fcd --- /dev/null +++ b/packages/torouter-web/src/tui/views/status.html @@ -0,0 +1,3 @@ +$def with (content) + +$:content diff --git a/packages/torouter-web/src/tui/views/torconfig.html b/packages/torouter-web/src/tui/views/torconfig.html new file mode 100644 index 0000000..26bd228 --- /dev/null +++ b/packages/torouter-web/src/tui/views/torconfig.html @@ -0,0 +1 @@ +The main Tor config page diff --git a/packages/torouter-web/src/tui/views/torstatus.html b/packages/torouter-web/src/tui/views/torstatus.html new file mode 100644 index 0000000..27b2888 --- /dev/null +++ b/packages/torouter-web/src/tui/views/torstatus.html @@ -0,0 +1,3 @@ +$def with (content, torrc) +<h2>This is the content of $:torrc</h2> +$:content diff --git a/packages/torouter-web/src/tui/views/wired.html b/packages/torouter-web/src/tui/views/wired.html new file mode 100644 index 0000000..3676f63 --- /dev/null +++ b/packages/torouter-web/src/tui/views/wired.html @@ -0,0 +1,7 @@ +$def with (form) + +<h2>Wired configuration page</h2> + +<form action="" method="POST"> +$:form.render() +</form> diff --git a/packages/torouter-web/src/tui/views/wireless.html b/packages/torouter-web/src/tui/views/wireless.html new file mode 100644 index 0000000..48242bc --- /dev/null +++ b/packages/torouter-web/src/tui/views/wireless.html @@ -0,0 +1,8 @@ +$def with (form) + +<h2>Wireless configuration page</h2> + +<form action="" method="POST"> +$:form.render() +</form> + diff --git a/packages/torouter-web/src/tui/views/wizard.html b/packages/torouter-web/src/tui/views/wizard.html new file mode 100644 index 0000000..0890507 --- /dev/null +++ b/packages/torouter-web/src/tui/views/wizard.html @@ -0,0 +1,12 @@ +$def with (wiz_form, text, step, next_step) + +<h1>Step number $step</h1> + +$text + +<form action="/wizard/$next_step" method="POST"> +$:wiz_form.render() + +</form> + +<!-- a href=/wizard/$next_step>Next ($next_step)</a--> |