From 8c9a8533434ec6e159541896d5f43e39303d42e4 Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 23 Jun 2021 16:35:57 +0200 Subject: Instance settings updates (#59) Allow admins to set instance settings through a PATCH to /api/v1/instance Update templates to reflect some of the new fields --- web/template/footer.tmpl | 6 ++++-- web/template/index.tmpl | 19 +++++++------------ 2 files changed, 11 insertions(+), 14 deletions(-) (limited to 'web') diff --git a/web/template/footer.tmpl b/web/template/footer.tmpl index 19e9cdbc4..88f4cd88a 100644 --- a/web/template/footer.tmpl +++ b/web/template/footer.tmpl @@ -5,8 +5,10 @@ Source Code
- Contact: {{.instance.ContactAccount}}
- + Contact: {{.instance.ContactAccount.Username}}
+
+
+ Email: {{.instance.Email}}
diff --git a/web/template/index.tmpl b/web/template/index.tmpl index 8d431b8d3..ba48e92ec 100644 --- a/web/template/index.tmpl +++ b/web/template/index.tmpl @@ -3,24 +3,19 @@ Clipart styled sloth logo
- -

Home to 3 users - who posted 42069 statuses, - federating with 9001 other instances.

+

Home to {{.instance.Stats.user_count}} users + who posted {{.instance.Stats.status_count}} statuses, + federating with {{.instance.Stats.domain_count}} other instances.

This is the default landing page, you can edit it from ./web/template/index.tmpl

- +

+ {{.instance.ShortDescription}} +

- GoToSocial does not provide it's own frontend, but implements the Mastodon client API. + GoToSocial does not provide its own frontend, but implements the Mastodon client API. You can use this server through a variety of clients:

-- cgit v1.3