diff options
author | FChannel <> | 2021-07-31 16:35:42 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-31 16:35:42 -0700 |
commit | c2184d6add23d9b0ca44dbbc5d026ab4f482dceb (patch) | |
tree | ca2f8ef2557458eb045e3eafcccb5d7de823f41d /static/archive.html | |
parent | 4a9452985a127a53572358c3b86a425a5df616e1 (diff) |
added pop route for removing archived posts. removed seeing archive page when not archived posts.
Diffstat (limited to 'static/archive.html')
-rw-r--r-- | static/archive.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/static/archive.html b/static/archive.html index 2b7d69a..aa37c94 100644 --- a/static/archive.html +++ b/static/archive.html @@ -39,6 +39,9 @@ <table align="center" style="width: 900px;"> <tr> + {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} + <td></td> + {{ end }} <th style="width: 100px">No.</th> <th>Excerpt</th> <th style="width: 100px;"></th> @@ -46,12 +49,18 @@ {{ range $i, $e := .Posts }} {{ if mod $i 2 }} <tr class="box-alt"> + {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} + <td><a href="/poparchive?id={{ $e.Id }}&board={{ $board.Name }}">[Pop]</a></td> + {{ end }} <td>{{ short $board.Actor.Outbox $e.Id }}</td> <td>{{ shortExcerpt $e }}</td> <td style="text-align: center;"><a href="/{{ $board.Actor.Name }}/{{ short $board.Actor.Outbox $e.Id }}">[View]</a></td> </tr> {{ else }} <tr class="box"> + {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} + <td><a href="/poparchive?id={{ $e.Id }}">[Pop]</a></td> + {{ end }} <td>{{ short $board.Actor.Outbox $e.Id }}</td> <td>{{ shortExcerpt $e }}</td> <td style="text-align: center;"><a href="/{{ $board.Actor.Name }}/{{ short $board.Actor.Outbox $e.Id }}">[View]</a></td> |