fix package, adapt to proper Route structure

This commit is contained in:
f0x 2021-06-21 18:58:32 +02:00
commit 9d7659948d
7 changed files with 60 additions and 27 deletions

View file

@ -1,12 +1,12 @@
<!-- footer.tmpl -->
<footer>
<div id="version">
Running GoToSocial version: <span class="accent">{{.version}}</span><br>
Running GoToSocial version: <span class="accent">{{.instance.Version}}</span><br>
<a href="https://github.com/superseriousbusiness/gotosocial">Source Code</a>
</div>
<div id="contact">
Administrated by: <a href="/{{.adminUsername}}" class="nounderline">{{.adminUsername}}</a><br>
<a href="/moderation">Moderation team</a>
Contact: <a href="/{{.instance.ContactAccount}}" class="nounderline">{{.instance.ContactAccount}}</a><br>
<!-- <a href="/moderation">Moderation team</a> -->
</div>
</footer>
</body>

View file

@ -6,11 +6,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/bundle.css">
<title>{{.instancename}} - GoToSocial</title>
<title>{{.instance.Title}} - GoToSocial</title>
</head>
<body>
<header>
<h1>
{{.instancename}}
{{.instance.Title}}
</h1>
</header>

View file

@ -3,7 +3,12 @@
<img src="/assets/sloth.png" alt="Clipart styled sloth logo">
</aside>
<section>
<h1>Home to <span class="count">{{.countUsers}}</span> users who posted <span class="count">{{.countStatuses}}</span> statuses.</h1>
<!-- <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>
<h3>This is the default landing page, you can edit it from <span class="accent">./web/template/index.tmpl</span></h1>
<ul>