diff options
Diffstat (limited to 'packages/torouter-web/src/tui/views')
-rw-r--r-- | packages/torouter-web/src/tui/views/torconfig.html | 12 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/views/torstatus.html | 2 |
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> |