diff options
| author | 2025-03-26 16:59:39 +0100 | |
|---|---|---|
| committer | 2025-03-26 15:59:39 +0000 | |
| commit | b6e481d63eec15191f2717957682c13ee8a68308 (patch) | |
| tree | 03cb9fc8bcb5f9eefddee754ad64b9de10c44c39 /web/template/status_info.tmpl | |
| parent | [chore] bumps our spf13/viper version (#3943) (diff) | |
| download | gotosocial-b6e481d63eec15191f2717957682c13ee8a68308.tar.xz | |
[feature] Allow user to choose "gallery" style layout for web view of profile (#3917)
* [feature] Allow user to choose "gallery" style web layout
* find a bug and squish it up and all day long you'll have good luck
* just a sec
* [performance] reindex public timeline + tinker with query a bit
* fiddling
* should be good now
* last bit of finagling, i'm done now i prommy
* panic normally
Diffstat (limited to 'web/template/status_info.tmpl')
| -rw-r--r-- | web/template/status_info.tmpl | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/web/template/status_info.tmpl b/web/template/status_info.tmpl index 5d26811d7..194a799f5 100644 --- a/web/template/status_info.tmpl +++ b/web/template/status_info.tmpl @@ -17,36 +17,9 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. */ -}} -{{- define "visibility_icon" -}} - {{- if eq .Visibility "public" -}} - globe - {{- else if eq .Visibility "unlisted" -}} - unlock - {{- else -}} - question - {{- end -}} -{{- end -}} - -{{- define "visibility_title" -}} - {{- if eq .Visibility "public" -}} - Public - {{- else if eq .Visibility "unlisted" -}} - Unlisted - {{- else -}} - Unknown - {{- end -}} -{{- end -}} - {{- with . }} <dl class="status-stats"> <div class="stats-grouping"> - <div class="stats-item visibility-level" title="{{- template "visibility_title" . -}}"> - <dt class="sr-only">Visibility</dt> - <dd> - <i class="fa fa-{{- template "visibility_icon" . -}}" aria-hidden="true"></i> - <span class="sr-only">{{- template "visibility_title" . -}}</span> - </dd> - </div> <div class="stats-item published-at text-cutoff"> <dt class="sr-only">Published</dt> <dd> @@ -57,7 +30,7 @@ <div class="stats-item edited-at text-cutoff"> <dt class="sr-only">Edited</dt> <dd> - edited <time class="dt-updated" datetime="{{- .EditedAt -}}">{{- .EditedAt | timestampPrecise -}}</time> + (edited <time class="dt-updated" datetime="{{- .EditedAt -}}">{{- .EditedAt | timestampPrecise -}}</time>) </dd> </div> {{ end }} |
