2020-01-14 16:57:16 +00:00
|
|
|
{{with .Data}}
|
2020-01-05 18:55:37 +00:00
|
|
|
<div id="status-{{.ID}}" 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>
|
2019-12-14 17:18:04 +00:00
|
|
|
retweeted
|
2019-12-13 18:08:26 +00:00
|
|
|
</div>
|
2020-01-14 16:57:16 +00:00
|
|
|
{{template "status" (WithContext .Reblog $.Ctx)}}
|
2019-12-14 10:57:14 +00:00
|
|
|
{{else}}
|
2020-01-14 16:57:16 +00:00
|
|
|
{{block "status" (WithContext . $.Ctx)}}
|
|
|
|
{{with $s := .Data}}
|
2020-01-08 18:16:06 +00:00
|
|
|
<div class="status-container status-{{.ID}}" data-id="{{.ID}}">
|
2019-12-22 03:43:25 +00:00
|
|
|
<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-14 10:57:14 +00:00
|
|
|
<div class="status">
|
|
|
|
<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>
|
2020-02-02 07:24:06 +00:00
|
|
|
<div class="more-container" title="more">
|
2020-02-09 13:42:16 +00:00
|
|
|
<div class="remote-link">
|
2020-02-02 07:24:06 +00:00
|
|
|
{{.Visibility}}
|
|
|
|
</div>
|
|
|
|
<div class="more-content">
|
2020-02-09 13:42:16 +00:00
|
|
|
<a class="more-link" href="{{.URL}}" target="_blank" title="source">
|
2020-02-02 07:24:06 +00:00
|
|
|
source
|
|
|
|
</a>
|
|
|
|
{{if .Muted}}
|
|
|
|
<form action="/unmuteconv/{{.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="unmute" class="btn-link more-link" title="unmute">
|
|
|
|
</form>
|
|
|
|
{{else}}
|
|
|
|
<form action="/muteconv/{{.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="mute" class="btn-link more-link" title="mute">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2020-02-02 08:30:40 +00:00
|
|
|
{{if eq $.Ctx.UserID .Account.ID}}
|
|
|
|
<form action="/delete/{{.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="delete" class="btn-link more-link" title="delete">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2020-02-02 07:24:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-14 10:57:14 +00:00
|
|
|
</div>
|
2019-12-18 22:14:02 +00:00
|
|
|
<div class="status-reply-container">
|
|
|
|
{{if .InReplyToID}}
|
2020-01-11 10:51:33 +00:00
|
|
|
<div class="status-reply-to">
|
|
|
|
<a class="status-reply-to-link" href="{{if not .ShowReplies}}/thread/{{.InReplyToID}}{{end}}#status-{{.InReplyToID}}">
|
2020-01-30 13:56:29 +00:00
|
|
|
reply to {{.Pleroma.InReplyToAccountAcct}}
|
2020-01-11 10:51:33 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2019-12-18 22:14:02 +00: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 10:51:33 +00:00
|
|
|
<div class="status-reply">
|
|
|
|
<a class="status-reply-link" href="#status-{{.ID}}">#{{.Number}}</a>
|
|
|
|
</div>
|
2019-12-18 22:14:02 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2020-01-30 13:56:29 +00:00
|
|
|
{{if .Content}}
|
2019-12-21 07:22:21 +00:00
|
|
|
<div class="status-content"> {{StatusContentFilter .SpoilerText .Content .Emojis .Mentions}} </div>
|
2020-01-30 13:56:29 +00:00
|
|
|
{{end}}
|
2019-12-14 10:57:14 +00:00
|
|
|
<div class="status-media-container">
|
2020-02-09 13:42:16 +00:00
|
|
|
{{range .MediaAttachments}}
|
|
|
|
{{if eq .Type "image"}}
|
|
|
|
<a class="img-link" href="{{.URL}}" target="_blank">
|
|
|
|
<img class="status-image" src="{{.URL}}" alt="status-image" />
|
|
|
|
{{if (and $.Ctx.MaskNSFW $s.Sensitive)}}
|
|
|
|
<div class="status-nsfw-overlay"></div>
|
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
{{else if eq .Type "audio"}}
|
|
|
|
<audio class="status-audio" controls preload="none">
|
2019-12-22 04:25:56 +00:00
|
|
|
<source src="{{.URL}}">
|
2020-02-09 13:42:16 +00:00
|
|
|
<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 (and $.Ctx.MaskNSFW $s.Sensitive)}}
|
|
|
|
<div class="status-nsfw-overlay"></div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<a href="{{.URL}}" target="_blank"> attachment </a>
|
|
|
|
{{end}}
|
2019-12-22 04:25:56 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2020-02-09 13:42:16 +00:00
|
|
|
{{if .Poll}}
|
|
|
|
<form class="poll-form" action="/vote/{{.Poll.ID}}" method="POST">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="hidden" name="status_id" value="{{$s.ID}}">
|
|
|
|
{{range $i, $o := .Poll.Options}}
|
|
|
|
<div class="poll-option">
|
|
|
|
{{if (or $s.Poll.Expired $s.Poll.Voted)}}
|
|
|
|
<div> {{$o.Title}} - {{$o.VotesCount}} votes </div>
|
|
|
|
{{else}}
|
|
|
|
<input type="{{if $s.Poll.Multiple}}checkbox{{else}}radio{{end}}" name="choices"
|
|
|
|
id="poll-{{$s.ID}}-{{$i}}" value="{{$i}}">
|
|
|
|
<label for="poll-{{$s.ID}}-{{$i}}">
|
|
|
|
{{$o.Title}}
|
|
|
|
</label>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if not (or .Poll.Expired .Poll.Voted)}}
|
|
|
|
<button type="submit"> Vote </button>
|
|
|
|
{{end}}
|
|
|
|
<div class="poll-info">
|
|
|
|
<span>{{.Poll.VotesCount}} votes</span>
|
|
|
|
{{if .Poll.Expired}}
|
|
|
|
<span> - poll expired </span>
|
|
|
|
{{else}}
|
|
|
|
<span>
|
|
|
|
- poll ends in
|
|
|
|
<time datetime="{{FormatTimeRFC3339 .Poll.ExpiresAt}}" title="{{FormatTimeRFC822 .Poll.ExpiresAt}}">
|
|
|
|
{{TimeUntil .Poll.ExpiresAt}}
|
|
|
|
</time>
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</form>
|
2019-12-13 18:08:26 +00:00
|
|
|
{{end}}
|
2019-12-26 09:11:24 +00:00
|
|
|
<div class="status-action-container">
|
|
|
|
<div class="status-action">
|
2020-01-30 13:56:29 +00:00
|
|
|
<a href="/thread/{{.ID}}?reply=true#status-{{.ID}}" title="reply">
|
|
|
|
reply
|
2019-12-26 09:11:24 +00:00
|
|
|
</a>
|
2020-01-14 16:57:16 +00:00
|
|
|
<a class="status-reply-count" href="/thread/{{.ID}}#status-{{.ID}}" {{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}>
|
2020-02-09 13:42:16 +00:00
|
|
|
{{if .RepliesCount}} ({{DisplayInteractionCount .RepliesCount}}) {{end}}
|
2019-12-26 09:11:24 +00: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-30 13:56:29 +00:00
|
|
|
retweet
|
2019-12-26 09:11:24 +00:00
|
|
|
</a>
|
|
|
|
{{else}}
|
2019-12-21 13:26:31 +00:00
|
|
|
{{if .Reblogged}}
|
2020-01-08 18:16:06 +00:00
|
|
|
<form class="status-retweet" data-action="unretweet" action="/unretweet/{{.ID}}" method="post">
|
2020-01-25 10:07:06 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
|
2020-01-30 13:56:29 +00:00
|
|
|
<input type="submit" value="unretweet" class="btn-link" title="unretweet">
|
2020-01-04 18:56:47 +00:00
|
|
|
</form>
|
2019-12-21 13:26:31 +00:00
|
|
|
{{else}}
|
2020-01-08 18:16:06 +00:00
|
|
|
<form class="status-retweet" data-action="retweet" action="/retweet/{{.ID}}" method="post">
|
2020-01-25 10:07:06 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
|
2020-01-30 13:56:29 +00:00
|
|
|
<input type="submit" value="retweet" class="btn-link" title="retweet">
|
2020-01-04 18:56:47 +00:00
|
|
|
</form>
|
2019-12-26 09:11:24 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2020-01-08 18:16:06 +00:00
|
|
|
<a class="status-retweet-count" href="/retweetedby/{{.ID}}" title="click to see the the list">
|
2020-01-30 13:56:29 +00:00
|
|
|
{{if .ReblogsCount}} ({{DisplayInteractionCount .ReblogsCount}}) {{end}}
|
2019-12-21 13:26:31 +00:00
|
|
|
</a>
|
2019-12-26 09:11:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="status-action">
|
|
|
|
{{if .Favourited}}
|
2020-01-08 18:16:06 +00:00
|
|
|
<form class="status-like" data-action="unlike" action="/unlike/{{.ID}}" method="post">
|
2020-01-25 10:07:06 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
|
2020-01-30 13:56:29 +00:00
|
|
|
<input type="submit" value="unlike" class="btn-link" title="unlike">
|
2020-01-04 18:56:47 +00:00
|
|
|
</form>
|
2019-12-26 09:11:24 +00:00
|
|
|
{{else}}
|
2020-01-08 18:16:06 +00:00
|
|
|
<form class="status-like" data-action="like" action="/like/{{.ID}}" method="post">
|
2020-01-25 10:07:06 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
|
2020-01-30 13:56:29 +00:00
|
|
|
<input type="submit" value="like" class="btn-link" title="like">
|
2020-01-04 18:56:47 +00:00
|
|
|
</form>
|
2019-12-21 13:26:31 +00:00
|
|
|
{{end}}
|
2020-01-08 18:16:06 +00:00
|
|
|
<a class="status-like-count" href="/likedby/{{.ID}}" title="click to see the the list">
|
2020-01-30 13:56:29 +00:00
|
|
|
{{if .FavouritesCount}} ({{DisplayInteractionCount .FavouritesCount}}) {{end}}
|
2019-12-26 09:11:24 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="status-action">
|
2020-02-09 13:42:16 +00:00
|
|
|
<a class="status-time" href="{{if not .ShowReplies}}/thread/{{.ID}}{{end}}#status-{{.ID}}"
|
|
|
|
{{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}>
|
|
|
|
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">
|
|
|
|
{{TimeSince .CreatedAt}}
|
|
|
|
</time>
|
2019-12-26 09:11:24 +00:00
|
|
|
</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}}
|
2020-01-14 16:57:16 +00:00
|
|
|
{{end}}
|
2019-12-13 18:08:26 +00:00
|
|
|
</div>
|
2020-01-14 16:57:16 +00:00
|
|
|
{{end}}
|