2023-01-05 12:43:00 +01:00
|
|
|
{{- /*
|
|
|
|
GoToSocial
|
|
|
|
Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/ -}}
|
|
|
|
|
2022-09-29 12:03:17 +02:00
|
|
|
<div data-nosnippet class="contentgrid">
|
2022-07-04 16:23:59 +02:00
|
|
|
<a href="{{.Account.URL}}" class="avatar"><img src="{{.Account.Avatar}}" alt=""></a>
|
2022-09-26 11:56:01 +02:00
|
|
|
<a href="{{.Account.URL}}" class="displayname">{{if .Account.DisplayName}}{{emojify .Account.Emojis (escape .Account.DisplayName)}}{{else}}{{.Account.Username}}{{end}}</a>
|
2022-07-09 13:37:06 +02:00
|
|
|
<a href="{{.Account.URL}}" class="username">@{{.Account.Acct}}</a>
|
2022-09-29 12:02:41 +02:00
|
|
|
<div class="not-expanded">
|
|
|
|
<span class="date">{{.CreatedAt | timestamp}}</span>
|
|
|
|
</div>
|
2022-07-04 16:23:59 +02: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-09-02 11:54:32 +02:00
|
|
|
<span class="spoiler-text">{{emojify .Emojis (escape .SpoilerText)}}</span>
|
2022-08-14 19:22:13 +02:00
|
|
|
<label class="button spoiler-label" for="hideSpoiler-{{.ID}}" tabindex="0">Toggle visibility</label>
|
2022-07-04 16:23:59 +02:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<div class="content">
|
2022-09-02 11:54:32 +02:00
|
|
|
{{emojify .Emojis (noescape .Content)}}
|
2022-07-04 16:23:59 +02:00
|
|
|
</div>
|
2021-09-13 14:45:33 +02:00
|
|
|
</div>
|
2022-07-04 16:23:59 +02:00
|
|
|
{{with .MediaAttachments}}
|
2022-08-14 19:22:13 +02: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}}
|
2022-12-17 05:38:56 +01:00
|
|
|
<div class="no-image-desc" aria-hidden="true" ><i class="fa fa-info-circle"></i><span>Missing media description</span></div>
|
2022-08-14 19:22:13 +02:00
|
|
|
{{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>
|
2022-12-17 05:38:56 +01:00
|
|
|
{{ if eq .Type "video" }}
|
|
|
|
<div class="video-play">
|
|
|
|
<span class="icon-span fa-stack" aria-hidden="true">
|
|
|
|
<i class="icon-bg fa fa-fw fa-circle fa-stack-1x"></i>
|
|
|
|
<i class="icon fa fa-fw fa-play-circle fa-stack-1x"></i>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<a href="{{.URL}}"
|
|
|
|
target="_blank"
|
|
|
|
{{if .Description}}title="{{.Description}}"{{end}}
|
|
|
|
data-pswp-width="{{.Meta.Original.Width}}px"
|
|
|
|
data-pswp-height="{{.Meta.Original.Height}}px"
|
|
|
|
{{if eq .Type "video"}}data-pswp-type="video"{{end}}
|
|
|
|
data-cropped="true">
|
2022-08-14 19:22:13 +02:00
|
|
|
<img src="{{.PreviewURL}}" {{if .Description}}alt="{{.Description}}"{{end}} data-blurhash="{{.Blurhash}}"/>
|
|
|
|
</a>
|
2022-07-04 16:23:59 +02:00
|
|
|
</div>
|
2022-08-14 19:22:13 +02:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2021-09-13 14:45:33 +02:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="info">
|
2022-10-02 15:54:42 +02:00
|
|
|
<div id="date">{{.CreatedAt | timestampPrecise}}</div>
|
2021-09-13 14:45:33 +02:00
|
|
|
<div class="stats">
|
|
|
|
<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>
|
2022-12-17 05:38:56 +01:00
|
|
|
<a data-nosnippet href="{{.URL}}" class="toot-link">View toot</a>
|