mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 04:07:28 -06:00
[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
This commit is contained in:
parent
ecdc8379fa
commit
c27b4d7ed0
29 changed files with 1015 additions and 62 deletions
|
|
@ -271,7 +271,7 @@ main {
|
|||
box-shadow: $boxshadow;
|
||||
}
|
||||
|
||||
#recent {
|
||||
#recent, #pinned {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue