From a81f3ef5cfe72b9edf345564fc31361650f15110 Mon Sep 17 00:00:00 2001
From: FChannel <>
Date: Tue, 29 Jun 2021 14:04:13 -0700
Subject: added public instance tracking when instance is created
---
static/faq.html | 2 +-
static/index.html | 14 ++++++++++++++
static/ncatalog.html | 2 +-
static/posts.html | 4 ++--
4 files changed, 18 insertions(+), 4 deletions(-)
(limited to 'static')
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 @@
coming soon(tm).
Server Version
- v0.0.3
+ v0.0.4
[Home][Rules][FAQ]
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 @@
{{ .Title }}
{{.Message}}
+
+
+
+
+ | Current known instances
+
+
+ {{ range .InstanceIndex }}
+
+ {{ .Id }} |
+
+ {{ end }}
+
+
{{ 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"
--
cgit v1.2.3