From c27b4d7ed02cdabac00c3ddedb8201b74f745ec6 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 25 Feb 2023 13:16:30 +0100 Subject: [feature] Client API endpoints + v. basic web view for pinned posts (#1547) * implement status pin client api + web handler * make test names + comments more descriptive * don't use separate table for status pins * remove unused add + remove checking * tidy up + add some more tests --- web/source/css/profile.css | 2 +- web/template/profile.tmpl | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/source/css/profile.css b/web/source/css/profile.css index 288ca6955..0065f6015 100644 --- a/web/source/css/profile.css +++ b/web/source/css/profile.css @@ -271,7 +271,7 @@ main { box-shadow: $boxshadow; } -#recent { +#recent, #pinned { display: flex; flex-direction: row; align-items: center; diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index d584676a6..f567998a4 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -53,6 +53,18 @@ + {{ if .pinned_statuses }} +

+ Pinned toots +

+
+ {{ range .pinned_statuses }} +
+ {{ template "status.tmpl" .}} +
+ {{ end }} +
+ {{ end }}

Latest public toots {{ if .rssFeed }} -- cgit v1.2.3