2019-12-14 18:12:48 +00:00
<div id="status-{{if .Reblog}}{{.Reblog.ID}}{{else}}{{.ID}}{{end}}" class="status-container-container">
2019-12-14 10:57:14 +00:00
{{if .Reblog}}
<div class="retweet-info">
2019-12-22 03:43:25 +00:00
<a class="img-link" href="/user/{{.Account.ID}}">
2019-12-22 16:27:49 +00:00
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="avatar" />
2019-12-20 18:30:20 +00:00
</a>
2019-12-21 05:48:06 +00:00
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
2020-01-01 09:40:47 +00:00
<img class="icon" src="/static/icons/retweeted.png" alt="retweeted" />
2019-12-14 17:18:04 +00:00
retweeted
2019-12-13 18:08:26 +00:00
</div>
2019-12-14 10:57:14 +00:00
{{template "status" .Reblog}}
{{else}}
{{block "status" .}}
<div class="status-container">
2019-12-22 03:43:25 +00:00
{{if not .HideAccountInfo}}
<div class="status-profile-img-container">
<a class="img-link" href="/user/{{.Account.ID}}">
2019-12-22 16:27:49 +00:00
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="avatar" />
2019-12-20 18:30:20 +00:00
</a>
2019-12-13 18:08:26 +00:00
</div>
2019-12-22 03:43:25 +00:00
{{end}}
2019-12-14 10:57:14 +00:00
<div class="status">
2019-12-18 22:14:02 +00:00
{{if not .HideAccountInfo}}
2019-12-14 10:57:14 +00:00
<div class="status-name">
2019-12-21 05:48:06 +00:00
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
2019-12-20 18:30:20 +00:00
<a href="/user/{{.Account.ID}}" >
<span class="status-uname"> {{.Account.Acct}} </span>
</a>
2019-12-22 03:43:25 +00:00
<a class="status-visibility">
2019-12-21 13:26:31 +00:00
{{if eq .Visibility "public"}}
2020-01-01 09:40:47 +00:00
<img class="icon" src="/static/icons/globe.png" alt="Public" title="Public" />
2019-12-21 13:26:31 +00:00
{{else if eq .Visibility "unlisted"}}
2020-01-01 09:40:47 +00:00
<img class="icon" src="/static/icons/unlock-alt.png" alt="Unlisted" title="Unlisted" />
2019-12-21 13:26:31 +00:00
{{else if eq .Visibility "private"}}
2020-01-01 09:40:47 +00:00
<img class="icon" src="/static/icons/lock.png" alt="Private" title="Private" />
2019-12-21 13:26:31 +00:00
{{else if eq .Visibility "direct"}}
2020-01-01 09:40:47 +00:00
<img class="icon" src="/static/icons/envelope.png" alt="Direct" title="Direct" />
2019-12-21 13:26:31 +00:00
{{end}}
</a>
2019-12-22 03:43:25 +00:00
<a class="remote-link" href="{{.URL}}" target="_blank" title="source">
2020-01-01 09:40:47 +00:00
<img class="icon" src="/static/icons/link.png" alt="source" />
2019-12-22 03:43:25 +00:00
</a>
2019-12-14 10:57:14 +00:00
</div>
2019-12-15 17:37:58 +00:00
{{end}}
2019-12-18 22:14:02 +00:00
<div class="status-reply-container">
{{if .InReplyToID}}
2020-01-01 09:40:47 +00:00
<img class="icon" src="/static/icons/mail-forward.png" alt="reply to" />
2019-12-18 22:14:02 +00:00
<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>
2019-12-21 07:22:21 +00:00
<div class="status-content"> {{StatusContentFilter .SpoilerText .Content .Emojis .Mentions}} </div>
2019-12-14 10:57:14 +00:00
<div class="status-media-container">
{{range .MediaAttachments}}
{{if eq .Type "image"}}
2019-12-22 03:43:25 +00:00
<a class="img-link" href="{{.URL}}" target="_blank">
2019-12-14 10:57:14 +00:00
<img class="status-image" src="{{.URL}}" alt="status-image" />
2019-12-31 11:00:21 +00:00
{{if (and $.MaskNSFW $.Sensitive)}}
2019-12-22 04:25:56 +00:00
<div class="status-nsfw-overlay"></div>
{{end}}
2019-12-13 18:08:26 +00:00
</a>
2019-12-14 10:57:14 +00:00
{{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"}}
2019-12-22 04:25:56 +00:00
<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>
2019-12-31 11:00:21 +00:00
{{if (and $.MaskNSFW $.Sensitive)}}
2019-12-22 04:25:56 +00:00
<div class="status-nsfw-overlay"></div>
{{end}}
</div>
2019-12-13 18:08:26 +00:00
{{else}}
2019-12-14 10:57:14 +00:00
<a href="{{.URL}}" target="_blank"> attachment </a>
2019-12-13 18:08:26 +00:00
{{end}}
{{end}}
2019-12-14 10:57:14 +00:00
</div>
2019-12-26 09:11:24 +00:00
<div class="status-action-container">
<div class="status-action">
<a class="status-you" href="/thread/{{.ID}}?reply=true #status - { { . ID } } " title= " reply " >
2020-01-01 09:40:47 +00:00
<img class="icon" src="/static/icons/reply.png" alt="reply" />
2019-12-26 09:11:24 +00:00
</a>
2019-12-29 11:32:24 +00:00
<a class="status-action-count" href="/thread/{{.ID}} #status - { { . ID } } " {{ if .ThreadInNewTab}}target= " _blank " {{ end}}>
2019-12-26 09:11:24 +00:00
<span> {{DisplayInteractionCount .RepliesCount}} </span>
</a>
</div>
<div class="status-action">
{{if or (eq .Visibility "private") (eq .Visibility "direct")}}
<a class="status-retweet" title="this status cannot be retweeted">
2020-01-01 09:40:47 +00:00
<img class="icon" src="/static/icons/retweet.png" alt="retweet" />
2019-12-26 09:11:24 +00:00
</a>
{{else}}
2019-12-21 13:26:31 +00:00
{{if .Reblogged}}
2020-01-04 18:56:47 +00:00
<form class="status-retweet" action="/unretweet/{{.ID}}" method="post">
<input type="image" src="/static/icons/retweeted.png" alt="undo retweet" class="icon" title="undo retweet">
</form>
2019-12-21 13:26:31 +00:00
{{else}}
2020-01-04 18:56:47 +00:00
<form class="status-retweet" action="/retweet/{{.ID}}" method="post">
<input type="image" src="/static/icons/retweet.png" alt="retweet" class="icon" title="retweet">
</form>
2019-12-26 09:11:24 +00:00
{{end}}
{{end}}
<a class="status-action-count" href="/retweetedby/{{.ID}}" title="click to see the the list">
2019-12-21 13:26:31 +00:00
<span> {{DisplayInteractionCount .ReblogsCount}} </span>
</a>
2019-12-26 09:11:24 +00:00
</div>
<div class="status-action">
{{if .Favourited}}
2020-01-04 18:56:47 +00:00
<form class="status-like" action="/unlike/{{.ID}}" method="post">
<input type="image" src="/static/icons/liked.png" alt="unlike" class="icon" title="unlike">
</form>
2019-12-26 09:11:24 +00:00
{{else}}
2020-01-04 18:56:47 +00:00
<form class="status-like" action="/like/{{.ID}}" method="post">
<input type="image" src="/static/icons/star-o.png" alt="like" class="icon" title="like">
</form>
2019-12-21 13:26:31 +00:00
{{end}}
2019-12-26 09:11:24 +00:00
<a class="status-action-count" href="/likedby/{{.ID}}" title="click to see the the list">
<span> {{DisplayInteractionCount .FavouritesCount}} </span>
</a>
</div>
<div class="status-action">
2019-12-29 11:32:24 +00:00
<a class="status-time" href="/thread/{{.ID}} #status - { { . ID } } " {{ if .ThreadInNewTab}}target= " _blank " {{ end}}>
2019-12-26 09:11:24 +00:00
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{.CreatedAt}}"> {{TimeSince .CreatedAt}} </time>
</a>
</div>
2019-12-14 10:57:14 +00:00
</div>
2019-12-13 18:08:26 +00:00
</div>
</div>
2019-12-14 10:57:14 +00:00
{{end}}
{{end}}
2019-12-13 18:08:26 +00:00
</div>