[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}}
|
{{end}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</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>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
{{ template "footer.tmpl" .}}
|
{{ template "footer.tmpl" .}}
|
Loading…
Reference in New Issue