summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2022-09-29 12:02:41 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-29 12:02:41 +0200
commit938328cd077d40b75e0834d56ff8d43ad035fd2b (patch)
tree76ed59a9adf8a40e83c99a3ea34ce7cb5a5f8877 /web/template
parent[chore] simplify generating log entry caller information (#863) (diff)
downloadgotosocial-938328cd077d40b75e0834d56ff8d43ad035fd2b.tar.xz
[frontend] Unified panels (#812)
* settings panel restructuring * clean up old Gin handlers * colorscheme redesign, some other small css tweaks * basic router layout, error boundary * colorscheme redesign, some other small css tweaks * kebab-case consistency * superfluous padding on applist * remove unused consts * redux, whitespace changes.. * use .jsx extensions for components * login flow up till app registration * full redux oauth implementation, with basic error handling * split oauth api functions * oauth api revocation handling * basic profile change submission * move old dir * profile overview * fix keeping track of the wrong instance url (for different instance/api domains) * use redux state for profile form * delete old/index.js, old/basic.js, fully implemented * implement old/user/profile.js * implement password change * remove debug logging * support future api for removing files * customize profile css * remove unneeded wrapper components * restructure form fields * start on admin pages * admin panel settings * admin settings panel * remove old/admin files * add top-level redirect * refactor/cleanup forms * only do API checks on logged-in state * admin-status based routing * federation block routing * federation blocks * upgrade dependencies * react 18 changes * media cleanup * fix useEffect hooks * remove unused require * custom emoji base * emoji uploader * delete last old panel files * sidebar styling, remove unused page * refactor submit functions * fix sidebar boxshadow-border * fix old css variables * fix fake-toot avatar * fix non-square emoji * fix user settings redux keys * properly get admin account contact from instance response * Account.source default values * source.status_format key * mobile responsiveness * mobile element tweaks * proper redirect after removing block * add redirects for old setting panel urls * deletes * fix mobile overflow * clean up debug logging calls
Diffstat (limited to 'web/template')
-rw-r--r--web/template/frontend.tmpl3
-rw-r--r--web/template/index.tmpl2
-rw-r--r--web/template/status.tmpl5
3 files changed, 7 insertions, 3 deletions
diff --git a/web/template/frontend.tmpl b/web/template/frontend.tmpl
index b667bc191..20c1d61c9 100644
--- a/web/template/frontend.tmpl
+++ b/web/template/frontend.tmpl
@@ -1,5 +1,6 @@
{{ template "header.tmpl" .}}
<main class="lightgray">
- <div id="root"></div>
+ <div id="root">
+ </div>
</main>
{{ template "footer.tmpl" .}} \ No newline at end of file
diff --git a/web/template/index.tmpl b/web/template/index.tmpl
index fb2e3b7b0..fbdb7269c 100644
--- a/web/template/index.tmpl
+++ b/web/template/index.tmpl
@@ -1,5 +1,5 @@
{{ template "header.tmpl" .}}
-<section class="excerpt_top">
+<section class="excerpt-top">
home to <span class="count">{{.instance.Stats.user_count}}</span> users
who posted <span class="count">{{.instance.Stats.status_count}}</span> statuses,
federating with <span class="count">{{.instance.Stats.domain_count}}</span> other instances.
diff --git a/web/template/status.tmpl b/web/template/status.tmpl
index c3b243445..73e7d1b03 100644
--- a/web/template/status.tmpl
+++ b/web/template/status.tmpl
@@ -2,6 +2,10 @@
<a href="{{.Account.URL}}" class="avatar"><img src="{{.Account.Avatar}}" alt=""></a>
<a href="{{.Account.URL}}" class="displayname">{{if .Account.DisplayName}}{{emojify .Account.Emojis (escape .Account.DisplayName)}}{{else}}{{.Account.Username}}{{end}}</a>
<a href="{{.Account.URL}}" class="username">@{{.Account.Acct}}</a>
+ <div class="not-expanded">
+ <span class="visibility">{{.Visibility | visibilityIcon}}</span>
+ <span class="date">{{.CreatedAt | timestamp}}</span>
+ </div>
<div class="text">
{{if .SpoilerText}}
<input class="spoiler" id="hideSpoiler-{{.ID}}" type="checkbox" style="display: none" aria-hidden="true" checked="true" />
@@ -43,7 +47,6 @@
<div class="info">
<div id="date">{{.CreatedAt | timestamp}}</div>
<div class="stats">
- <div id="visibility">{{.Visibility | visibilityIcon}}</div>
<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>