summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArlo Breault <arlolra@gmail.com>2015-05-04 12:23:53 -0700
committerArlo Breault <arlolra@gmail.com>2015-05-04 12:23:53 -0700
commit4f2b003dfe56bf524ed71ed318c332af7aa7954b (patch)
treeabc61072ae2991aaa5f4f86bad2c4795d51b2da7
parentd181c37df29be7535f3611d5c6161be8618efde0 (diff)
Update favicon / title with check result
* trac 15820
-rw-r--r--public/base.html2
-rw-r--r--public/bulk.html1
-rw-r--r--public/img/tor-not.icobin0 -> 4286 bytes
-rw-r--r--public/img/tor-off.icobin0 -> 4286 bytes
-rw-r--r--public/img/tor-on.icobin0 -> 4286 bytes
-rw-r--r--public/index.html9
6 files changed, 10 insertions, 2 deletions
diff --git a/public/base.html b/public/base.html
index 5673de9..2f9facc 100644
--- a/public/base.html
+++ b/public/base.html
@@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ template "title" . }}</title>
- <link rel="icon" type="image/x-icon" href="/torcheck/favicon.ico" />
+ <link rel="icon" type="image/x-icon" href="/torcheck/img/{{ template "favicon" . }}" />
<style>
html { height: 100%; }
body {
diff --git a/public/bulk.html b/public/bulk.html
index 9f62854..15ec668 100644
--- a/public/bulk.html
+++ b/public/bulk.html
@@ -1,5 +1,6 @@
{{ template "base.html" . }}
{{ define "title" }}Bulk Tor Exit Exporter{{ end }}
+{{ define "favicon" }}favicon.ico{{ end }}
{{ define "head" }}{{ end }}
{{ define "css" }}
.form {
diff --git a/public/img/tor-not.ico b/public/img/tor-not.ico
new file mode 100644
index 0000000..b925b97
--- /dev/null
+++ b/public/img/tor-not.ico
Binary files differ
diff --git a/public/img/tor-off.ico b/public/img/tor-off.ico
new file mode 100644
index 0000000..6682396
--- /dev/null
+++ b/public/img/tor-off.ico
Binary files differ
diff --git a/public/img/tor-on.ico b/public/img/tor-on.ico
new file mode 100644
index 0000000..24b3bac
--- /dev/null
+++ b/public/img/tor-on.ico
Binary files differ
diff --git a/public/index.html b/public/index.html
index 05c2e56..eb1195e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,5 +1,12 @@
{{ template "base.html" . }}
-{{ define "title" }}{{ GetText .Lang "Are you using Tor?" }}{{ end }}
+{{ define "title" }}
+ {{ if .IsTor }}
+ {{ GetText .Lang "Congratulations. This browser is configured to use Tor." }}
+ {{ else }}
+ {{ GetText .Lang "Sorry. You are not using Tor." }}
+ {{ end }}
+{{ end }}
+{{ define "favicon" }}tor-{{ .OnOff }}.png{{ end }}
{{ define "css" }}
.on { color: green; }
.off { color: red; }