updates
This commit is contained in:
parent
cb5dae7d16
commit
355a36e209
|
@ -257,11 +257,20 @@
|
||||||
.profile .about-user .fields {
|
.profile .about-user .fields {
|
||||||
background: var(--profile-bg);
|
background: var(--profile-bg);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template: max-content 1fr;
|
grid-template-columns: 6rem auto;
|
||||||
padding: 0 0.5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile .about-user .fields .field + .field {
|
.profile .about-user .fields > * {
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
|
.profile .about-user .fields > b {
|
||||||
|
align-self: flex-end;
|
||||||
|
justify-self: center;
|
||||||
|
}
|
||||||
|
.profile .about-user .fields > span {
|
||||||
|
}
|
||||||
|
.profile .about-user .fields > span + b,
|
||||||
|
.profile .about-user .fields > span + b + span {
|
||||||
border-top: 0.1rem solid var(--gray2);
|
border-top: 0.1rem solid var(--gray2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -272,10 +281,10 @@
|
||||||
|
|
||||||
.profile .about-user .accountstats {
|
.profile .about-user .accountstats {
|
||||||
background: var(--bg-accent);
|
background: var(--bg-accent);
|
||||||
padding: 1rem;
|
padding: 0.5rem;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto auto;
|
grid-template-columns: 6rem auto;
|
||||||
gap: 0.5rem 1rem;
|
gap: 0.5rem 1rem;
|
||||||
}
|
}
|
||||||
.profile .about-user .accountstats > b {
|
.profile .about-user .accountstats > b {
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://gotosocial.org" target="_blank">GoToSocial</a></li>
|
<li><a href="https://gotosocial.org" target="_blank">GoToSocial</a></li>
|
||||||
<li>official <a href="https://github.com/superseriousbusiness/gotosocial" target="_blank">source code</a></li>
|
<li>official <a href="https://github.com/superseriousbusiness/gotosocial" target="_blank">source code</a></li>
|
||||||
<li>my <a href="https://source.garden/config/gts-web" target="_blank">custom templates</a></li>
|
<li>my <a href="https://source.garden/styles/gts-web" target="_blank">custom templates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -94,6 +94,16 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h2>statis</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>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
{{ template "footer.tmpl" .}}
|
{{ template "footer.tmpl" .}}
|
|
@ -16,10 +16,20 @@
|
||||||
// You should have received a copy of the GNU Affero General Public License
|
// You should have received a copy of the GNU Affero General Public License
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/ -}}
|
*/ -}}
|
||||||
|
{{- /*
|
||||||
|
NESTED TEMPLATE DECLARATIONS
|
||||||
|
If some if/else macro is used multiple times, declare it once here instead.
|
||||||
|
When invoking these nested templates, remember to pass in the values passed
|
||||||
|
to the executing template, ie., use '{{ template "example" . }}' not
|
||||||
|
'{{ template "example" }}', otherwise you'll end up with empty variables.
|
||||||
|
*/ -}}
|
||||||
|
{{ define "thumbnailType" }}{{ if .instance.ThumbnailType }}{{ .instance.ThumbnailType }}{{ else }}image/png{{ end }}{{ end }}
|
||||||
|
{{ define "instanceTitle" }}{{ if .ogMeta }}{{ .ogMeta.Title }}{{ else }}{{ .instance.Title }} - GoToSocial{{ end }}{{ end }}
|
||||||
|
|
||||||
|
{{- /*
|
||||||
|
BOILERPLATE GOES HERE
|
||||||
|
*/ -}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<!-- header.tmpl -->
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -66,15 +66,15 @@
|
||||||
<div class="fields">
|
<div class="fields">
|
||||||
{{ range .account.Fields }}
|
{{ range .account.Fields }}
|
||||||
<b>{{emojify $.account.Emojis (noescape .Name)}}</b>
|
<b>{{emojify $.account.Emojis (noescape .Name)}}</b>
|
||||||
<span>{{replace 'https?://' '' {{emojify $.account.Emojis (noescape .Value)}} }}</span>
|
<span>{{emojify $.account.Emojis (noescape .Value)}}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="accountstats">
|
<div class="accountstats">
|
||||||
<b>Joined</b><time datetime="{{.account.CreatedAt}}">{{.account.CreatedAt | timestampVague}}</time>
|
<b>join</b><time datetime="{{.account.CreatedAt}}">{{.account.CreatedAt | timestampVague}}</time>
|
||||||
<b>Posts</b><span>{{.account.StatusesCount}}</span>
|
<b>posts</b><span>{{.account.StatusesCount}}</span>
|
||||||
<b>Followed by</b><span>{{.account.FollowersCount}}</span>
|
<b>follows</b><span>{{.account.FollowingCount}}</span>
|
||||||
<b>Following</b><span>{{.account.FollowingCount}}</span>
|
<b>followers</b><span>{{.account.FollowersCount}}</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Reference in New Issue