aboutsummaryrefslogtreecommitdiffstats
path: root/torouterui/templates
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-25 02:24:27 +0100
committerficus <ficus@robocracy.org>2012-11-25 02:25:30 +0100
commit3aae76170978a7557b0d7d2cbf10b3b856871538 (patch)
treece2bd74d873a03db0177029c7abe7aae8e4d9c8e /torouterui/templates
parent17f9bf637866bd9dbf63cce097a2db85f92e15cc (diff)
downloadtui-3aae76170978a7557b0d7d2cbf10b3b856871538.tar.gz
tui-3aae76170978a7557b0d7d2cbf10b3b856871538.zip
add tor (re)starts
Diffstat (limited to 'torouterui/templates')
-rw-r--r--torouterui/templates/tor.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/torouterui/templates/tor.html b/torouterui/templates/tor.html
index 327ac59..3c7e340 100644
--- a/torouterui/templates/tor.html
+++ b/torouterui/templates/tor.html
@@ -2,6 +2,17 @@
{% extends "base.html" %}
{% block body %}
+{% if form == None %}
+<form action="/tor/" method="POST">
+Tor daemon should probably be restarted... are you certain?
+<br>
+<br>
+<button type="submit" class="btn btn-large btn-primary btn-warning" type="button" name="submit" value="Restart">
+Restart</button>
+</form>
+
+{% else %}
+
<form action="/tor/" method="POST" class="form-horizontal">
<legend>Tor Network Configuration</legend>
@@ -38,5 +49,5 @@
Save</button>
</div>
</form>
-
+{% endif %}
{% endblock %}