summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2023-08-19 14:33:15 +0200
committerLibravatar GitHub <noreply@github.com>2023-08-19 14:33:15 +0200
commit92de8fb396265d057f18aab4de0bc8aff4b90188 (patch)
tree46438b9ff550261f56aa58d038cdf2f1e15493e3 /web/template
parent[bugfix] fix double firing bun.DB query hooks (#2124) (diff)
downloadgotosocial-92de8fb396265d057f18aab4de0bc8aff4b90188.tar.xz
[feature] Instance rules (#2125)
* init instance rules database model, admin api * expose instance rules in public instance api * public /api/v1/instance/rules route * GET ruleById * createRule route * createRule auth check * updateRule * deleteRule * list rules on about page * ruleGet auth * add about page ids for anchors * process and store adding violated rules to reports * admin api models for instance rules * instance rule edit frontend * change rule inputs to textareas * database fixes after rebase (#2124) * remove unused imports * fix db migration column name * fix tests * fix more tests * fix postgres error with wrongly used Ident * add some tests, fiddle with rule model a bit, fix postgres migration * swagger docs --------- Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/about.tmpl28
1 files changed, 19 insertions, 9 deletions
diff --git a/web/template/about.tmpl b/web/template/about.tmpl
index 6c22b98ee..34fbe2570 100644
--- a/web/template/about.tmpl
+++ b/web/template/about.tmpl
@@ -26,7 +26,7 @@
</div>
<div>
- <h2>Admin Contact</h2>
+ <h2 id="contact">Admin Contact</h2>
{{if .instance.ContactAccount}}
<a href="{{.instance.ContactAccount.URL}}" class="account-card">
<img class="avatar" src="{{.instance.ContactAccount.Avatar}}" alt="" />
@@ -42,7 +42,16 @@
</div>
<div>
- <h2>Features</h2>
+ <h2 id="rules">Rules</h2>
+ <ol>
+ {{range .instance.Rules}}
+ <li>{{.Text}}</li>
+ {{end}}
+ </ol>
+ </div>
+
+ <div>
+ <h2 id="features">Features</h2>
<ul>
<li>
Registration is
@@ -68,8 +77,9 @@
</li>
</ul>
</div>
+
<div>
- <h2>Moderated servers</h2>
+ <h2 id="moderated-servers">Moderated servers</h2>
<p>
ActivityPub instances exchange (federate) data with other servers, including accounts and toots.
This can be prevented for specific domains by suspending them. None of their content is stored,
@@ -83,12 +93,12 @@
</div>
<div>
- <h2>Instance Statistics</h2>
- <ul>
- <li>Users: <span class="count">{{.instance.Stats.user_count}}</span></li>
- <li>Posts: <span class="count">{{.instance.Stats.status_count}}</span></li>
- <li>Federates with: <span class="count">{{.instance.Stats.domain_count}}</span> instances</li>
- </ul>
+ <h2 id="stats">Instance Statistics</h2>
+ <ul>
+ <li>Users: <span class="count">{{.instance.Stats.user_count}}</span></li>
+ <li>Posts: <span class="count">{{.instance.Stats.status_count}}</span></li>
+ <li>Federates with: <span class="count">{{.instance.Stats.domain_count}}</span> instances</li>
+ </ul>
</div>
</section>
</main>