mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 16:23:41 +01:00
[feature] Add instance stats to /about (#1936)
When you configure the landing-page-user redirect, you lose access to the one page that displays server stats. This adds the same stats as we have on / to /about to bring those back.
This commit is contained in:
parent
1218f97e01
commit
ba0bc06b8c
@ -81,6 +81,15 @@
|
||||
{{end}}
|
||||
</p>
|
||||
</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>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
{{ template "footer.tmpl" .}}
|
Loading…
Reference in New Issue
Block a user