Commit 4f2b003d authored by Arlo Breault's avatar Arlo Breault
Browse files

Update favicon / title with check result

 * trac 15820
parent d181c37d
......@@ -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 {
......
{{ template "base.html" . }}
{{ define "title" }}Bulk Tor Exit Exporter{{ end }}
{{ define "favicon" }}favicon.ico{{ end }}
{{ define "head" }}{{ end }}
{{ define "css" }}
.form {
......
{{ 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; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment