diff options
author | 2023-07-04 11:33:07 +0200 | |
---|---|---|
committer | 2023-07-04 11:33:07 +0200 | |
commit | ba0bc06b8cda94d39c0a3de3494de61b8c021ecb (patch) | |
tree | 126394c140485e54015c8f0e5efc11bd8a3e8e53 | |
parent | [chore]: Bump github.com/minio/minio-go/v7 from 7.0.58 to 7.0.59 (#1941) (diff) | |
download | gotosocial-ba0bc06b8cda94d39c0a3de3494de61b8c021ecb.tar.xz |
[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.
-rw-r--r-- | web/template/about.tmpl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web/template/about.tmpl b/web/template/about.tmpl index 89e033287..6c22b98ee 100644 --- a/web/template/about.tmpl +++ b/web/template/about.tmpl @@ -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" .}}
\ No newline at end of file |