mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-19 21:43:02 +00:00
131 lines
4.7 KiB
Cheetah
131 lines
4.7 KiB
Cheetah
<div id="status-{{if .Reblog}}{{.Reblog.ID}}{{else}}{{.ID}}{{end}}" class="status-container-container">
|
|
{{if .Reblog}}
|
|
<div class="retweet-info">
|
|
<a class="img-link" href="/user/{{.Account.ID}}">
|
|
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="avatar" />
|
|
</a>
|
|
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
|
|
<i class="fa fa-retweet retweeted"></i>
|
|
retweeted
|
|
</div>
|
|
{{template "status" .Reblog}}
|
|
{{else}}
|
|
{{block "status" .}}
|
|
<div class="status-container">
|
|
{{if not .HideAccountInfo}}
|
|
<div class="status-profile-img-container">
|
|
<a class="img-link" href="/user/{{.Account.ID}}">
|
|
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="avatar" />
|
|
</a>
|
|
</div>
|
|
{{end}}
|
|
<div class="status">
|
|
{{if not .HideAccountInfo}}
|
|
<div class="status-name">
|
|
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
|
|
<a href="/user/{{.Account.ID}}" >
|
|
<span class="status-uname"> {{.Account.Acct}} </span>
|
|
</a>
|
|
<a class="status-visibility">
|
|
{{if eq .Visibility "public"}}
|
|
<i class="fa fa-globe" title="Public"></i>
|
|
{{else if eq .Visibility "unlisted"}}
|
|
<i class="fa fa-unlock-alt" title="Unlisted"></i>
|
|
{{else if eq .Visibility "private"}}
|
|
<i class="fa fa-lock" title="Private"></i>
|
|
{{else if eq .Visibility "direct"}}
|
|
<i class="fa fa-envelop" title="Direct"></i>
|
|
{{end}}
|
|
</a>
|
|
<a class="remote-link" href="{{.URL}}" target="_blank" title="source">
|
|
<i class="fa fa-link"></i>
|
|
</a>
|
|
</div>
|
|
{{end}}
|
|
<div class="status-reply-container">
|
|
{{if .InReplyToID}}
|
|
<i class="fa fa-mail-forward"></i>
|
|
<a class="status-reply-to" href="{{if not .ShowReplies}}/thread/{{.InReplyToID}}{{end}}#status-{{.InReplyToID}}"> reply to {{.Pleroma.InReplyToAccountAcct}} </a>
|
|
{{if index .ReplyMap .ID}} <span class="status-reply-info-divider"> - </span> {{end}}
|
|
{{end}}
|
|
{{if .ShowReplies}}
|
|
{{if index .ReplyMap .ID}} <span class="status-reply-text"> replies: </span> {{end}}
|
|
{{range index .ReplyMap .ID}}
|
|
<a class="status-reply" href="#status-{{.ID}}">#{{.Number}}</a>
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
<div class="status-content"> {{StatusContentFilter .SpoilerText .Content .Emojis .Mentions}} </div>
|
|
<div class="status-media-container">
|
|
{{range .MediaAttachments}}
|
|
{{if eq .Type "image"}}
|
|
<a class="img-link" href="{{.URL}}" target="_blank">
|
|
<img class="status-image" src="{{.URL}}" alt="status-image" />
|
|
{{if $.Sensitive}}
|
|
<div class="status-nsfw-overlay"></div>
|
|
{{end}}
|
|
</a>
|
|
{{else if eq .Type "audio"}}
|
|
<audio class="status-audio" controls preload="none">
|
|
<source src="{{.URL}}">
|
|
<p> Your browser doesn't support HTML5 audio </p>
|
|
</audio>
|
|
{{else if eq .Type "video"}}
|
|
<div class="status-video-container">
|
|
<video class="status-video" controls preload="none">
|
|
<source src="{{.URL}}">
|
|
<p> Your browser doesn't support HTML5 video </p>
|
|
</video>
|
|
{{if $.Sensitive}}
|
|
<div class="status-nsfw-overlay"></div>
|
|
{{end}}
|
|
</div>
|
|
{{else}}
|
|
<a href="{{.URL}}" target="_blank"> attachment </a>
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
<div class="status-action">
|
|
<a class="status-you" href="/thread/{{.ID}}?reply=true#status-{{.ID}}" title="reply">
|
|
<i class="fa fa-reply"></i>
|
|
<span> {{DisplayInteractionCount .RepliesCount}} </span>
|
|
</a>
|
|
{{if or (eq .Visibility "private") (eq .Visibility "direct")}}
|
|
<a class="status-retweet" title="this status cannot be retweeted">
|
|
<i class="fa fa-retweet"></i>
|
|
<span> {{DisplayInteractionCount .ReblogsCount}} </span>
|
|
</a>
|
|
{{else}}
|
|
{{if .Reblogged}}
|
|
<a class="status-retweet" href="/unretweet/{{.ID}}" title="undo retweet">
|
|
<i class="fa fa-retweet retweeted"></i>
|
|
<span> {{DisplayInteractionCount .ReblogsCount}} </span>
|
|
</a>
|
|
{{else}}
|
|
<a class="status-retweet" href="/retweet/{{.ID}}" title="retweet">
|
|
<i class="fa fa-retweet"></i>
|
|
<span> {{DisplayInteractionCount .ReblogsCount}} </span>
|
|
</a>
|
|
{{end}}
|
|
{{end}}
|
|
{{if .Favourited}}
|
|
<a class="status-like" href="/unlike/{{.ID}}" title="unlike">
|
|
<i class="fa fa-star liked"></i>
|
|
<span> {{DisplayInteractionCount .FavouritesCount}} </span>
|
|
</a>
|
|
{{else}}
|
|
<a class="status-like" href="/like/{{.ID}}" title="like">
|
|
<i class="fa fa-star-o"></i>
|
|
<span> {{DisplayInteractionCount .FavouritesCount}} </span>
|
|
</a>
|
|
{{end}}
|
|
<a class="status-time" href="/thread/{{.ID}}#status-{{.ID}}">
|
|
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{.CreatedAt}}"> {{TimeSince .CreatedAt}} </time>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|