2023-01-05 11:43:00 +00:00
|
|
|
{{- /*
|
2023-04-04 09:33:11 +00:00
|
|
|
// GoToSocial
|
|
|
|
// Copyright (C) GoToSocial Authors admin@gotosocial.org
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
//
|
|
|
|
// 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/>.
|
2023-01-05 11:43:00 +00:00
|
|
|
*/ -}}
|
|
|
|
|
2023-12-05 11:43:07 +00:00
|
|
|
<a data-nosnippet href="{{- .URL -}}" class="toot-link">Open thread</a>
|
2023-05-11 15:46:32 +00:00
|
|
|
<section class="author">
|
2023-12-05 11:43:07 +00:00
|
|
|
<a href="{{- .Account.URL -}}">
|
|
|
|
<img class="avatar" src="{{- .Account.Avatar -}}" alt="">
|
|
|
|
<span aria-hidden="true" class="displayname">
|
|
|
|
{{- if .Account.DisplayName -}}
|
|
|
|
{{- emojify .Account.Emojis (escape .Account.DisplayName) -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- .Account.Username -}}
|
|
|
|
{{- end -}}
|
|
|
|
</span>
|
|
|
|
<span aria-hidden="true" class="username">@{{- .Account.Username -}}</span>
|
|
|
|
<span class="sr-only">
|
|
|
|
{{- if .Account.DisplayName -}}
|
|
|
|
{{- emojify .Account.Emojis (escape .Account.DisplayName) -}}. Username: @{{ .Account.Acct -}}.
|
|
|
|
{{- else -}}
|
|
|
|
@{{- .Account.Acct -}}.
|
|
|
|
{{- end -}}
|
2023-05-11 15:46:32 +00:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</section>
|
|
|
|
<section class="body">
|
2023-12-05 11:43:07 +00:00
|
|
|
{{- if .SpoilerText }}
|
|
|
|
<details class="text-spoiler">
|
|
|
|
<summary>
|
|
|
|
<span class="spoiler-text" lang="{{- .LanguageTag.TagStr -}}">{{- emojify .Emojis (escape .SpoilerText) -}}</span>
|
|
|
|
<span class="button" role="button" tabindex="0">Toggle visibility</span>
|
|
|
|
</summary>
|
|
|
|
<div class="text">
|
|
|
|
<div class="content" lang="{{- .LanguageTag.TagStr -}}">
|
|
|
|
{{ emojify .Emojis (noescape .Content) }}
|
2023-05-11 15:46:32 +00:00
|
|
|
</div>
|
2023-12-05 11:43:07 +00:00
|
|
|
{{- if .Poll }}
|
|
|
|
{{ template "status_poll.tmpl" . }}
|
|
|
|
{{- end }}
|
2022-07-04 14:23:59 +00:00
|
|
|
</div>
|
2023-12-05 11:43:07 +00:00
|
|
|
</details>
|
|
|
|
{{- else }}
|
|
|
|
<div class="text">
|
|
|
|
<div class="content" lang="{{- .LanguageTag.TagStr -}}">
|
|
|
|
{{ emojify .Emojis (noescape .Content) }}
|
|
|
|
</div>
|
|
|
|
{{- if .Poll }}
|
|
|
|
{{ template "status_poll.tmpl" . }}
|
|
|
|
{{- end }}
|
2022-08-14 17:22:13 +00:00
|
|
|
</div>
|
2023-12-05 11:43:07 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if .MediaAttachments }}
|
|
|
|
{{ template "status_attachments.tmpl" . }}
|
|
|
|
{{- end }}
|
2023-05-11 15:46:32 +00:00
|
|
|
</section>
|
|
|
|
<aside class="info">
|
2023-12-10 14:06:06 +00:00
|
|
|
<dl class="sr-only">
|
|
|
|
<dt>Published<dt>
|
|
|
|
<dd>{{- .CreatedAt | timestampPrecise -}}</dd>
|
|
|
|
{{- if .LanguageTag.DisplayStr }}
|
|
|
|
<dt>Language</dt>
|
|
|
|
<dd>{{ .LanguageTag.DisplayStr }}</dd>
|
|
|
|
{{- end }}
|
|
|
|
</dl>
|
|
|
|
<time aria-hidden="true" datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
|
2023-05-11 15:46:32 +00:00
|
|
|
<div class="stats" role="group">
|
2023-11-17 10:35:28 +00:00
|
|
|
<div class="stats-item">
|
2023-12-05 11:43:07 +00:00
|
|
|
<span aria-hidden="true"><i class="fa fa-reply-all"></i> {{ .RepliesCount -}}</span>
|
|
|
|
<span class="sr-only">{{- .RepliesCount }} {{ if .RepliesCount | eq 1 }}reply{{ else }}replies{{ end -}}</span>
|
2023-05-11 15:46:32 +00:00
|
|
|
</div>
|
2023-11-17 10:35:28 +00:00
|
|
|
<div class="stats-item">
|
2023-12-05 11:43:07 +00:00
|
|
|
<span aria-hidden="true"><i class="fa fa-star"></i> {{ .FavouritesCount -}}</span>
|
|
|
|
<span class="sr-only">{{- .FavouritesCount }} {{ if .FavouritesCount | eq 1 }}favourite{{ else }}favourites{{ end -}}</span>
|
2023-05-11 15:46:32 +00:00
|
|
|
</div>
|
2023-11-17 10:35:28 +00:00
|
|
|
<div class="stats-item">
|
2023-12-05 11:43:07 +00:00
|
|
|
<span aria-hidden="true"><i class="fa fa-retweet"></i> {{ .ReblogsCount -}}</span>
|
|
|
|
<span class="sr-only">{{- .ReblogsCount }} {{ if .ReblogsCount | eq 1 }}boost{{ else }}boosts{{ end -}}</span>
|
2023-05-11 15:46:32 +00:00
|
|
|
</div>
|
2023-12-05 11:43:07 +00:00
|
|
|
{{- if .Pinned }}
|
|
|
|
<div class="stats-item">
|
|
|
|
<i class="fa fa-thumb-tack" aria-hidden="true"></i>
|
|
|
|
<span class="sr-only">pinned</span>
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
{{- if .LanguageTag.DisplayStr }}
|
2023-12-10 14:06:06 +00:00
|
|
|
<div aria-hidden="true" class="stats-item language" title="Language: {{ .LanguageTag.DisplayStr }}">{{ .LanguageTag.TagStr }}</div>
|
2023-12-05 11:43:07 +00:00
|
|
|
{{- end }}
|
2021-09-13 12:45:33 +00:00
|
|
|
</div>
|
2023-05-11 15:46:32 +00:00
|
|
|
</aside>
|