aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/src/tui/views
diff options
context:
space:
mode:
authorArturo FilastoĢ€ <hellais@torproject.org>2011-08-19 15:05:07 +0200
committerArturo FilastoĢ€ <hellais@torproject.org>2011-08-19 15:05:07 +0200
commit406ad86833f44167cf3719d7d052bdca0c0da0d7 (patch)
treea9d0a239915f78c16a64606354cb4cd6858733b6 /packages/torouter-web/src/tui/views
parent89a84c8bd8ebad59388b180dc1f8a7e497f3ba58 (diff)
downloadtorouter-406ad86833f44167cf3719d7d052bdca0c0da0d7.tar.gz
torouter-406ad86833f44167cf3719d7d052bdca0c0da0d7.zip
Add support for torrc file read and write
Diffstat (limited to 'packages/torouter-web/src/tui/views')
-rw-r--r--packages/torouter-web/src/tui/views/torconfig.html12
-rw-r--r--packages/torouter-web/src/tui/views/torstatus.html2
2 files changed, 13 insertions, 1 deletions
diff --git a/packages/torouter-web/src/tui/views/torconfig.html b/packages/torouter-web/src/tui/views/torconfig.html
index 26bd228..223c339 100644
--- a/packages/torouter-web/src/tui/views/torconfig.html
+++ b/packages/torouter-web/src/tui/views/torconfig.html
@@ -1 +1,11 @@
-The main Tor config page
+$def with (content)
+
+<form method="POST" action="/tor/config" enctype="multipart/form-data">
+<ul>
+<li><textarea cols="100" rows="50" name="torrc">
+$:content
+</textarea></li>
+<li><input type="submit" name="save"></li>
+</ul>
+</form>
+
diff --git a/packages/torouter-web/src/tui/views/torstatus.html b/packages/torouter-web/src/tui/views/torstatus.html
index 27b2888..a2eeacf 100644
--- a/packages/torouter-web/src/tui/views/torstatus.html
+++ b/packages/torouter-web/src/tui/views/torstatus.html
@@ -1,3 +1,5 @@
$def with (content, torrc)
<h2>This is the content of $:torrc</h2>
$:content
+
+<a href="/tor/config">edit torrc</a>