mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-29 15:12:45 +00:00
rss icon, fix indent
This commit is contained in:
parent
9d161cb00e
commit
b5fdf63bb5
|
@ -157,34 +157,22 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile {
|
.profile .col-header {
|
||||||
.col-header {
|
display: flex;
|
||||||
display: flex;
|
justify-content: start;
|
||||||
justify-content: start;
|
gap: 2rem;
|
||||||
gap: 2rem;
|
align-items: center;
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
background: $profile-bg;
|
||||||
|
border-top-left-radius: $br;
|
||||||
|
border-top-right-radius: $br;
|
||||||
|
padding: 0.75rem;
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
line-height: 1.3rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background: $profile-bg;
|
|
||||||
border-top-left-radius: $br;
|
|
||||||
border-top-right-radius: $br;
|
|
||||||
padding: 0.75rem;
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
line-height: 1.3rem;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.pinned {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: auto 1fr;
|
|
||||||
gap: 1rem;
|
|
||||||
|
|
||||||
a {
|
|
||||||
justify-self: end;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,6 +182,31 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.4rem;
|
gap: 0.4rem;
|
||||||
|
|
||||||
|
.col-header {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr;
|
||||||
|
gap: 1rem;
|
||||||
|
|
||||||
|
a {
|
||||||
|
justify-self: end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rss-icon {
|
||||||
|
display: block;
|
||||||
|
margin: -0.25rem 0;
|
||||||
|
|
||||||
|
.fa {
|
||||||
|
font-size: 2rem;
|
||||||
|
object-fit: contain;
|
||||||
|
vertical-align: middle;
|
||||||
|
color: $orange2;
|
||||||
|
/* can't size a single-color background, so we use a linear-gradient that's effectively white */
|
||||||
|
background: linear-gradient(to right, $white1 100%, transparent 0) no-repeat center center;
|
||||||
|
background-size: 1.2rem 1.4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.toot {
|
.toot {
|
||||||
.info {
|
.info {
|
||||||
padding: 0.3rem 0.75rem;
|
padding: 0.3rem 0.75rem;
|
||||||
|
|
|
@ -20,123 +20,125 @@
|
||||||
{{ template "header.tmpl" .}}
|
{{ template "header.tmpl" .}}
|
||||||
|
|
||||||
<main class="profile">
|
<main class="profile">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="header-image">
|
<div class="header-image">
|
||||||
{{ if .account.Header }}
|
{{ if .account.Header }}
|
||||||
<img src="{{.account.Header}}" alt="" />
|
<img src="{{.account.Header}}" alt="" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="basic-info" aria-hidden="true">
|
<div class="basic-info" aria-hidden="true">
|
||||||
<a class="avatar" href="{{.account.Avatar}}">
|
<a class="avatar" href="{{.account.Avatar}}">
|
||||||
<img src="{{.account.Avatar}}" alt="">
|
<img src="{{.account.Avatar}}" alt="">
|
||||||
</a>
|
</a>
|
||||||
<span class="displayname text-cutoff">
|
<span class="displayname text-cutoff">
|
||||||
{{if .account.DisplayName}}
|
{{if .account.DisplayName}}
|
||||||
{{emojify .account.Emojis (escape .account.DisplayName)}}
|
{{emojify .account.Emojis (escape .account.DisplayName)}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{.account.Username}}
|
{{.account.Username}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<span class="sr-only">.</span>
|
<span class="sr-only">.</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="username text-cutoff">@{{.account.Username}}<span class="sr-only">,
|
<span class="username text-cutoff">@{{.account.Username}}<span class="sr-only">,
|
||||||
</span>{{acctInstance .account.Acct}}</span>
|
</span>{{acctInstance .account.Acct}}</span>
|
||||||
{{- /* Only render account role if 1. it's present and 2. it's not equal to the standard 'user' role */ -}}
|
{{- /* Only render account role if 1. it's present and 2. it's not equal to the standard 'user' role */ -}}
|
||||||
{{ if and (.account.Role) (ne .account.Role.Name "user") }}
|
{{ if and (.account.Role) (ne .account.Role.Name "user") }}
|
||||||
<div class="role {{ .account.Role.Name }}">
|
<div class="role {{ .account.Role.Name }}">
|
||||||
<span class="sr-only">Role: </span>{{ .account.Role.Name }}
|
<span class="sr-only">Role: </span>{{ .account.Role.Name }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!-- <a class="rss-icon-link" href="/@admin/feed.rss" aria-label="RSS feed">
|
</div>
|
||||||
<i class="rss-icon fa fa-rss-square" aria-hidden="true"></i>
|
<div class="sr-only">
|
||||||
</a> -->
|
Profile for
|
||||||
</div>
|
{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}.
|
||||||
<div class="sr-only">
|
Username @{{.account.Username}}, {{acctInstance .account.Acct}}
|
||||||
Profile for
|
</div>
|
||||||
{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}.
|
</div>
|
||||||
Username @{{.account.Username}}, {{acctInstance .account.Acct}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="column-split">
|
<div class="column-split">
|
||||||
|
|
||||||
<section class="about-user">
|
<section class="about-user">
|
||||||
<div class="col-header">
|
<div class="col-header">
|
||||||
<h3>About</h3>
|
<h3>About</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="fields">
|
<div class="fields">
|
||||||
{{ range .account.Fields }}
|
{{ range .account.Fields }}
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<b>{{.Name}}</b>
|
<b>{{.Name}}</b>
|
||||||
<span>{{.Value}}</span>
|
<span>{{.Value}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="bio">
|
<div class="bio">
|
||||||
{{ if .account.Note }}
|
{{ if .account.Note }}
|
||||||
{{emojify .account.Emojis (noescape .account.Note)}}
|
{{emojify .account.Emojis (noescape .account.Note)}}
|
||||||
{{else}}
|
{{else}}
|
||||||
This GoToSocial user hasn't written a bio yet!
|
This GoToSocial user hasn't written a bio yet!
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sr-only" role="group">
|
<div class="sr-only" role="group">
|
||||||
<span>Joined on {{.account.CreatedAt | timestampVague}}.</span>
|
<span>Joined on {{.account.CreatedAt | timestampVague}}.</span>
|
||||||
<span>{{.account.StatusesCount}} post{{if .account.StatusesCount | eq 1 | not}}s{{end}}.</span>
|
<span>{{.account.StatusesCount}} post{{if .account.StatusesCount | eq 1 | not}}s{{end}}.</span>
|
||||||
<span>Followed by {{.account.FollowersCount}}.</span>
|
<span>Followed by {{.account.FollowersCount}}.</span>
|
||||||
<span>Following {{.account.FollowingCount}}.</span>
|
<span>Following {{.account.FollowingCount}}.</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="accountstats" aria-hidden="true">
|
<div class="accountstats" aria-hidden="true">
|
||||||
<b>Joined</b><time datetime="{{.account.CreatedAt}}">{{.account.CreatedAt | timestampVague}}</time>
|
<b>Joined</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>Followed by</b><span>{{.account.FollowersCount}}</span>
|
||||||
<b>Following</b><span>{{.account.FollowingCount}}</span>
|
<b>Following</b><span>{{.account.FollowingCount}}</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="toots">
|
<section class="toots">
|
||||||
{{ if .pinned_statuses }}
|
{{ if .pinned_statuses }}
|
||||||
<div class="col-header pinned">
|
<div class="col-header">
|
||||||
<h3>Pinned posts</h3>
|
<h3>Pinned posts</h3>
|
||||||
<a href="#recent">jump to recent</a>
|
<a href="#recent">jump to recent</a>
|
||||||
</div>
|
</div>
|
||||||
<section class="thread">
|
<section class="thread">
|
||||||
{{ range .pinned_statuses }}
|
{{ range .pinned_statuses }}
|
||||||
<article class="toot expanded" id="{{.ID}}">
|
<article class="toot expanded" id="{{.ID}}">
|
||||||
{{ template "status.tmpl" .}}
|
{{ template "status.tmpl" .}}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="col-header">
|
<div class="col-header">
|
||||||
<h3 id="recent" tabindex="-1">Recent posts</h3>
|
<h3 id="recent" tabindex="-1">Recent posts</h3>
|
||||||
</div>
|
{{ if .rssFeed }}
|
||||||
|
<a href="{{ .rssFeed }}" class="rss-icon" aria-label="RSS feed">
|
||||||
|
<i class="fa fa-rss-square" aria-hidden="true"></i>
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<section class="thread">
|
<section class="thread">
|
||||||
{{ if not .statuses }}
|
{{ if not .statuses }}
|
||||||
<div data-nosnippet class="nothinghere">Nothing here!</div>
|
<div data-nosnippet class="nothinghere">Nothing here!</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ range .statuses }}
|
{{ range .statuses }}
|
||||||
<article class="toot expanded" id="{{.ID}}">
|
<article class="toot expanded" id="{{.ID}}">
|
||||||
{{ template "status.tmpl" .}}
|
{{ template "status.tmpl" .}}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="backnextlinks">
|
<div class="backnextlinks">
|
||||||
{{ if .show_back_to_top }}
|
{{ if .show_back_to_top }}
|
||||||
<a href="/@{{ .account.Username }}">Back to top</a>
|
<a href="/@{{ .account.Username }}">Back to top</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .statuses_next }}
|
{{ if .statuses_next }}
|
||||||
<a href="{{ .statuses_next }}" class="next">Show older</a>
|
<a href="{{ .statuses_next }}" class="next">Show older</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ template "footer.tmpl" .}}
|
{{ template "footer.tmpl" .}}
|
Loading…
Reference in a new issue