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