diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/faq.html | 2 | ||||
-rw-r--r-- | static/index.html | 14 | ||||
-rw-r--r-- | static/ncatalog.html | 2 | ||||
-rw-r--r-- | static/posts.html | 4 |
4 files changed, 18 insertions, 4 deletions
diff --git a/static/faq.html b/static/faq.html index 2365c3e..c5f98d2 100644 --- a/static/faq.html +++ b/static/faq.html @@ -37,7 +37,7 @@ <p>coming soon(tm).</p> <h4>Server Version</h4> - <p>v0.0.3</p> + <p>v0.0.4</p> </div> <div style="width: 500px; margin:0 auto; margin-top: 50px; text-align: center;"> <a href="/">[Home]</a><a href="/static/rules.html">[Rules]</a><a href="/static/faq.html">[FAQ]</a> diff --git a/static/index.html b/static/index.html index 1cd206b..502e527 100644 --- a/static/index.html +++ b/static/index.html @@ -21,6 +21,20 @@ <div style="text-align: center; max-width: 800px; margin: 0 auto;"> <h1>{{ .Title }}</h1> <p style="text-align: justify">{{.Message}}</p> + + <div style="margin-top:50px;"> + <table align="center" style="text-align: left;"> + <th> + <tr>Current known instances</tr> + </th> + + {{ range .InstanceIndex }} + <tr> + <td>{{ .Id }}</td> + </tr> + {{ end }} + </table> + </div> </div> {{ end }} {{ define "bottom" }}{{ end }} diff --git a/static/ncatalog.html b/static/ncatalog.html index cbb3ae8..fc2dabf 100644 --- a/static/ncatalog.html +++ b/static/ncatalog.html @@ -52,7 +52,7 @@ media.style = "display: none;" } - if(isOnion("{{ .Id }}")) { + if(isOnion("{{ .Id }}") && !isOnion("{{ $board.Domain }}")) { sensitive = document.getElementById("sensitive-{{ .Id }}") document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png" document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Instance" diff --git a/static/posts.html b/static/posts.html index cdefd14..f7ca3a7 100644 --- a/static/posts.html +++ b/static/posts.html @@ -32,7 +32,7 @@ media.style = "display: none;" } - if(isOnion("{{ .Id }}")) { + if(isOnion("{{ .Id }}") && !isOnion("{{ $board.Domain }}")) { sensitive = document.getElementById("sensitive-{{ .Id }}") document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png" document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Instance" @@ -123,7 +123,7 @@ media.style = "display: none;" } - if(isOnion("{{ .Id }}")) { + if(isOnion("{{ .Id }}") && !isOnion("{{ $board.Domain }}") { sensitive = document.getElementById("sensitive-{{ .Id }}") document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png" document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Instance" |