diff options
author | 2021-06-23 16:35:57 +0200 | |
---|---|---|
committer | 2021-06-23 16:35:57 +0200 | |
commit | 8c9a8533434ec6e159541896d5f43e39303d42e4 (patch) | |
tree | 3da3cbf9aa33a160cd076f2b9f8d56396ae3bdfa /web | |
parent | Opengraph meta tags (#55) (diff) | |
download | gotosocial-8c9a8533434ec6e159541896d5f43e39303d42e4.tar.xz |
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
Diffstat (limited to 'web')
-rw-r--r-- | web/template/footer.tmpl | 6 | ||||
-rw-r--r-- | web/template/index.tmpl | 19 |
2 files changed, 11 insertions, 14 deletions
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 @@ <a href="https://github.com/superseriousbusiness/gotosocial">Source Code</a> </div> <div id="contact"> - Contact: <a href="/{{.instance.ContactAccount}}" class="nounderline">{{.instance.ContactAccount}}</a><br> - <!-- <a href="/moderation">Moderation team</a> --> + Contact: <a href="{{.instance.ContactAccount.URL}}" class="nounderline">{{.instance.ContactAccount.Username}}</a><br> + </div> + <div id="email"> + Email: <a href="mailto:{{.instance.Email}}" class="nounderline">{{.instance.Email}}</a><br> </div> </footer> </body> 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 @@ <img src="/assets/sloth.png" alt="Clipart styled sloth logo"> </aside> <section> - <!-- <h1>Home to <span class="count">{ {.instance.Stats.UserCount}}</span> users - who posted <span class="count">{ {.instance.Stats.StatusCount}}</span> statuses, - federating with <span class="count">{ {.instance.Stats.DomainCount}}</span> other instances.</h1> --> - <h1>Home to <span class="count">3</span> users - who posted <span class="count">42069</span> statuses, - federating with <span class="count">9001</span> other instances.</h1> + <h1>Home to <span class="count">{{.instance.Stats.user_count}}</span> users + who posted <span class="count">{{.instance.Stats.status_count}}</span> statuses, + federating with <span class="count">{{.instance.Stats.domain_count}}</span> other instances.</h1> <h3>This is the default landing page, you can edit it from <span class="accent">./web/template/index.tmpl</span></h1> - <ul> - <li>Some explanation about the instance (description) with instance header and profile images.</li> - <li>Instructions for registering.</li> - <li>Etc.</li> - </ul> + <p> + {{.instance.ShortDescription}} + </p> </section> <section class="apps"> <p> - 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: </p> <div class="applist"> |