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>
<div class="status"> <div class="status">
<div class="status-name"> <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}}"> <a href="/user/{{.Account.ID}}">
<span class="status-uname"> @{{.Account.Acct}} </span> <span class="status-uname"> @{{.Account.Acct}} </span>
</a> </a>
<div class="more-container"> <div class="more-container">
<div class="remote-link"> <div class="remote-link">
{{if .IDNumbers}}#{{index .IDNumbers .ID}}{{end}} {{.Visibility}} {{if .IDNumbers}}#{{index .IDNumbers .ID}}{{end}} {{.Visibility}} {{.ID}}
</div> </div>
<div class="more-content"> <div class="more-content">
<a class="more-link" href="{{.URL}}" target="_blank"> <a class="more-link" href="{{.URL}}" target="_blank">
@ -92,7 +92,8 @@
</div> </div>
{{if (or .Content .SpoilerText)}} {{if (or .Content .SpoilerText)}}
<div class="status-content"> <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}} {{StatusContentFilter .Content .Emojis .Mentions | Raw}}
</div> </div>
{{end}} {{end}}

View file

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