2022-07-04 14:23:59 +00:00
|
|
|
<div class="contentgrid">
|
|
|
|
<a href="{{.Account.URL}}" class="avatar"><img src="{{.Account.Avatar}}" alt=""></a>
|
|
|
|
<a href="{{.Account.URL}}" class="displayname">{{if .Account.DisplayName}}{{.Account.DisplayName}}{{else}}{{.Account.Username}}{{end}}</a>
|
2022-07-09 11:37:06 +00:00
|
|
|
<a href="{{.Account.URL}}" class="username">@{{.Account.Acct}}</a>
|
2022-07-04 14:23:59 +00:00
|
|
|
<div class="text">
|
|
|
|
{{if .SpoilerText}}
|
|
|
|
<input class="spoiler" id="hideSpoiler-{{.ID}}" type="checkbox" style="display: none" aria-hidden="true" checked="true" />
|
|
|
|
<div class="spoiler">
|
2022-07-09 11:36:56 +00:00
|
|
|
<span class="spoiler-text">{{.SpoilerText}}</span>
|
2022-08-14 17:22:13 +00:00
|
|
|
<label class="button spoiler-label" for="hideSpoiler-{{.ID}}" tabindex="0">Toggle visibility</label>
|
2022-07-04 14:23:59 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<div class="content">
|
|
|
|
{{.Content |noescape}}
|
|
|
|
</div>
|
2021-09-13 12:45:33 +00:00
|
|
|
</div>
|
2022-07-04 14:23:59 +00:00
|
|
|
{{with .MediaAttachments}}
|
2022-08-14 17:22:13 +00:00
|
|
|
<div class="media photoswipe-gallery {{(len .) | oddOrEven }}{{if eq (len .) 1}} single{{end}}{{if eq (len .) 2}} double{{end}}">
|
|
|
|
{{range .}}
|
|
|
|
<div class="media-wrapper">
|
|
|
|
{{if not .Description}}
|
|
|
|
<div class="no-image-desc" aria-hidden="true" ><i class="fa fa-info-circle"></i><span>Missing image description</span></div>
|
|
|
|
{{end}}
|
|
|
|
<input type="checkbox" id="sensitiveMedia-{{.ID}}" class="sensitive-checkbox hidden" {{if not $.Sensitive}}checked{{end}}/>
|
|
|
|
<div class="sensitive">
|
|
|
|
<div class="open">
|
|
|
|
<label for="sensitiveMedia-{{.ID}}" class="button" role="button" tabindex="0">
|
|
|
|
<i class="fa fa-eye-slash" title="Hide sensitive media"></i>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="closed" {{if .Description}}title="{{.Description}}"{{end}}>
|
|
|
|
<label for="sensitiveMedia-{{.ID}}" class="button" role="button" tabindex="0">Show sensitive media</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a href="{{.URL}}" target="_blank" {{if .Description}}title="{{.Description}}"{{end}} data-pswp-width="{{.Meta.Original.Width}}px" data-pswp-height="{{.Meta.Original.Height}}px">
|
|
|
|
<img src="{{.PreviewURL}}" {{if .Description}}alt="{{.Description}}"{{end}} data-blurhash="{{.Blurhash}}"/>
|
|
|
|
</a>
|
2022-07-04 14:23:59 +00:00
|
|
|
</div>
|
2022-08-14 17:22:13 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2021-09-13 12:45:33 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="info">
|
|
|
|
<div id="date">{{.CreatedAt | timestamp}}</div>
|
|
|
|
<div class="stats">
|
|
|
|
<div id="visibility">{{.Visibility | visibilityIcon}}</div>
|
|
|
|
<div id="replies"><i aria-label="Replies" class="fa fa-reply-all"></i> {{.RepliesCount}}</div>
|
|
|
|
<div id="boosts"><i aria-label="Boosts" class="fa fa-retweet"></i> {{.ReblogsCount}}</div>
|
|
|
|
<div id="favorites"><i aria-label="Favorites" class="fa fa-star"></i> {{.FavouritesCount}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a href="{{.URL}}" class="toot-link">View toot</a>
|