[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:
Daenney 2023-07-04 11:33:07 +02:00 committed by GitHub
parent 1218f97e01
commit ba0bc06b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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" .}}