From b6e481d63eec15191f2717957682c13ee8a68308 Mon Sep 17 00:00:00 2001
From: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Wed, 26 Mar 2025 16:59:39 +0100
Subject: [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
---
web/template/profile-gallery.tmpl | 87 ++++++++++++++++
web/template/profile.tmpl | 197 ++---------------------------------
web/template/profile_about_user.tmpl | 56 ++++++++++
web/template/profile_header.tmpl | 185 ++++++++++++++++++++++++++++++++
web/template/status.tmpl | 20 +++-
web/template/status_attachment.tmpl | 179 +++++++++++++++++++++++++++++++
web/template/status_attachments.tmpl | 195 ----------------------------------
web/template/status_info.tmpl | 29 +-----
8 files changed, 533 insertions(+), 415 deletions(-)
create mode 100644 web/template/profile-gallery.tmpl
create mode 100644 web/template/profile_about_user.tmpl
create mode 100644 web/template/profile_header.tmpl
create mode 100644 web/template/status_attachment.tmpl
delete mode 100644 web/template/status_attachments.tmpl
(limited to 'web/template')
diff --git a/web/template/profile-gallery.tmpl b/web/template/profile-gallery.tmpl
new file mode 100644
index 000000000..badb04615
--- /dev/null
+++ b/web/template/profile-gallery.tmpl
@@ -0,0 +1,87 @@
+{{- /*
+// 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 Pinned media
+ jump to recent
+ Recent media
+ {{- if .rssFeed }}
+
+
+
+ {{- end }}
+
This GoToSocial user hasn't written a bio yet!
- {{- end }} -This GoToSocial user hasn't written a bio yet!
+ {{- end }} +