aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorFChannel <>2021-06-29 14:04:13 -0700
committerFChannel <>2021-06-29 14:04:13 -0700
commita81f3ef5cfe72b9edf345564fc31361650f15110 (patch)
tree862ff930b44c62435c375f10cf54afb4053a6d02 /static
parent9b67a65d76eb98a6e405b677a20c6215e1271753 (diff)
added public instance tracking when instance is created
Diffstat (limited to 'static')
-rw-r--r--static/faq.html2
-rw-r--r--static/index.html14
-rw-r--r--static/ncatalog.html2
-rw-r--r--static/posts.html4
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"