2022-07-04 16:23:59 +02: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>
|
|
|
|
<a href="{{.Account.URL}}" class="username">@{{.Account.Username}}</a>
|
|
|
|
<div class="text">
|
|
|
|
{{if .SpoilerText}}
|
|
|
|
<input class="spoiler" id="hideSpoiler-{{.ID}}" type="checkbox" style="display: none" aria-hidden="true" checked="true" />
|
|
|
|
<div class="spoiler">
|
|
|
|
<span>{{.SpoilerText}}</span><label class="button spoiler-label" for="hideSpoiler-{{.ID}}">Toggle visibility</label>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<div class="content">
|
|
|
|
{{.Content |noescape}}
|
|
|
|
</div>
|
2021-09-13 14:45:33 +02:00
|
|
|
</div>
|
2022-07-04 16:23:59 +02:00
|
|
|
{{with .MediaAttachments}}
|
|
|
|
<div class="media {{(len .) | oddOrEven }}{{if eq (len .) 1}} single{{end}}{{if eq (len .) 2}} double{{end}}">
|
|
|
|
{{range .}}
|
|
|
|
<a href="{{.URL}}" target="_blank" title="{{.Description}}">
|
|
|
|
{{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}}
|
|
|
|
<img src="{{.PreviewURL}}" alt="{{.Description}}"/>
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2021-09-13 14:45:33 +02: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>
|