From 3012b8a04a91297085016fd5f677d20f0a220acf Mon Sep 17 00:00:00 2001 From: f0x Date: Tue, 30 Jul 2024 17:16:34 +0200 Subject: [PATCH] reflect profile.html changes in templates --- web/assets/static-pages/profile.html | 541 ---------------------- web/source/settings/components/status.tsx | 18 +- web/template/status_header.tmpl | 65 +-- 3 files changed, 33 insertions(+), 591 deletions(-) delete mode 100644 web/assets/static-pages/profile.html diff --git a/web/assets/static-pages/profile.html b/web/assets/static-pages/profile.html deleted file mode 100644 index d09116d12..000000000 --- a/web/assets/static-pages/profile.html +++ /dev/null @@ -1,541 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @admin@localhost:8080 - - - - - -
-
-

Profile for admin

-
-
- - Header for admin - -
-
- -
-
Display name
-
admin
-
-
Username
-
@admin@localhost:8080
-
-
Role
-
admin
-
-
-
-
-
-
-

About admin

-
-

Bio

-
-

This GoToSocial user hasn't written a bio yet!

-
-

Stats

-
-
Joined
-
-
Posts
-
4
-
Followed by
-
1
-
Following
-
1
-
-
-
-
-
-

Pinned posts

- jump to recent -
-
- - -
-
-
-
-

Recent posts

- - - -
-
- - -
- -
-
-
-
-
- - - - \ No newline at end of file diff --git a/web/source/settings/components/status.tsx b/web/source/settings/components/status.tsx index ba38e161c..84925fd9f 100644 --- a/web/source/settings/components/status.tsx +++ b/web/source/settings/components/status.tsx @@ -33,9 +33,9 @@ export function FakeStatus({ children }) {
- + -
+
Display name
{account.display_name.trim().length > 0 ? account.display_name : account.username} @@ -82,7 +82,7 @@ export function Status({ status }: { status: StatusType }) { function StatusHeader({ status }: { status: StatusType }) { const author = status.account; - + return (
@@ -99,7 +99,7 @@ function StatusHeader({ status }: { status: StatusType }) { alt={`Avatar for ${author.username}`} title={`Avatar for ${author.username}`} /> -
+
{author.display_name} , @{author.acct} @@ -130,7 +130,7 @@ function StatusBody({ status }: { status: StatusType }) { className="spoiler-text" lang={status.language} > - { status.spoiler_text + {status.spoiler_text ? status.spoiler_text + " " : "[no content warning set] " } @@ -146,7 +146,7 @@ function StatusBody({ status }: { status: StatusType }) {
@@ -170,7 +170,7 @@ function StatusMedia({ status }: { status: StatusType }) { role="group" aria-label={aria_label} > - { status.media_attachments.map((media) => { + {status.media_attachments.map((media) => { return (