Some visual changes

User note in spoiler
User created_at in note
Emoji bot in name if actor is bot
Visible spoiler text name
Visible NSFW marked statuses caption
Status local id
This commit is contained in:
localhost_frssoft 2022-09-19 23:42:58 +03:00
parent f219ac0dca
commit c3d8a0291b
2 changed files with 12 additions and 3 deletions

View File

@ -23,13 +23,13 @@
</div>
<div class="status">
<div class="status-name">
<bdi class="status-dname"> {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} </bdi>
<bdi class="status-dname"> {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} {{if .Account.Bot}}🤖{{end}}</bdi>
<a href="/user/{{.Account.ID}}">
<span class="status-uname"> @{{.Account.Acct}} </span>
</a>
<div class="more-container">
<div class="remote-link">
{{if .IDNumbers}}#{{index .IDNumbers .ID}}{{end}} {{.Visibility}}
{{if .IDNumbers}}#{{index .IDNumbers .ID}}{{end}} {{.Visibility}} {{.ID}}
</div>
<div class="more-content">
<a class="more-link" href="{{.URL}}" target="_blank">
@ -92,7 +92,8 @@
</div>
{{if (or .Content .SpoilerText)}}
<div class="status-content">
{{if .SpoilerText}}{{EmojiFilter (HTML .SpoilerText) .Emojis | Raw}}<br/>{{end}}
{{if .Sensitive}}[NSFW]<br/>{{end}}
{{if .SpoilerText}}[{{EmojiFilter (HTML .SpoilerText) .Emojis | Raw}}]<br/>{{end}}
{{StatusContentFilter .Content .Emojis .Mentions | Raw}}
</div>
{{end}}

View File

@ -129,9 +129,14 @@
{{if .IsCurrent}} - <a href="/filters"> filters </a> {{end}}
</div>
</div>
<details>
<summary>About user</summary>
<div class="user-profile-decription">
[User created: {{.User.CreatedAt}}]<br>
{{EmojiFilter .User.Note .User.Emojis | Raw}}
</div>
</details>
{{if .User.Fields}}
<div class="user-fields">
{{range .User.Fields}}
@ -199,6 +204,9 @@
{{if .NextLink}}
<a href="{{.NextLink}}">[next]</a>
{{end}}
{{if .PrevLink}}
<br><a href="{{.PrevLink}}">[prev]</a>
{{end}}
</div>
{{template "footer.tmpl"}}