summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-02-25 13:16:30 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-25 12:16:30 +0000
commitc27b4d7ed02cdabac00c3ddedb8201b74f745ec6 (patch)
treed80f621241fd67a4e5de2d21a8c24776552175f5 /web
parent[chore] Update gin to v1.9.0 (#1553) (diff)
downloadgotosocial-c27b4d7ed02cdabac00c3ddedb8201b74f745ec6.tar.xz
[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
Diffstat (limited to 'web')
-rw-r--r--web/source/css/profile.css2
-rw-r--r--web/template/profile.tmpl12
2 files changed, 13 insertions, 1 deletions
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 @@
</div>
</div>
</div>
+ {{ if .pinned_statuses }}
+ <h2 id="pinned">
+ <span>Pinned toots</span>
+ </h2>
+ <div class="thread">
+ {{ range .pinned_statuses }}
+ <div class="toot expanded">
+ {{ template "status.tmpl" .}}
+ </div>
+ {{ end }}
+ </div>
+ {{ end }}
<h2 id="recent">
<span>Latest public toots</span>
{{ if .rssFeed }}