aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorFChannel <>2021-07-31 16:35:42 -0700
committerFChannel <>2021-07-31 16:35:42 -0700
commitc2184d6add23d9b0ca44dbbc5d026ab4f482dceb (patch)
treeca2f8ef2557458eb045e3eafcccb5d7de823f41d /static
parent4a9452985a127a53572358c3b86a425a5df616e1 (diff)
added pop route for removing archived posts. removed seeing archive page when not archived posts.
Diffstat (limited to 'static')
-rw-r--r--static/archive.html9
-rw-r--r--static/ncatalog.html4
-rw-r--r--static/nposts.html4
3 files changed, 17 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>
diff --git a/static/ncatalog.html b/static/ncatalog.html
index 65a7d84..c51a5a3 100644
--- a/static/ncatalog.html
+++ b/static/ncatalog.html
@@ -19,7 +19,9 @@
<hr>
<ul style="margin: 0; padding: 0; display: inline">
<li style="display: inline"><a href="/{{ $board.Name }}">[Return]</a></li>
+ {{ if showArchive }}
<li style="display: inline"><a href="/{{ $board.Name }}/archive">[Archive]</a></li>
+ {{ end }}
<li style="display: inline"><a href="#bottom">[Bottom]</a></li>
<li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li>
</ul>
@@ -86,7 +88,9 @@
<hr>
<ul style="margin: 0; padding: 0; display: inline">
<li style="display: inline"><a href="/{{ $board.Name }}">[Return]</a></li>
+ {{ if showArchive }}
<li style="display: inline"><a href="/{{ $board.Name }}/archive">[Archive]</a></li>
+ {{ end }}
<li style="display: inline"><a id="bottom" href="#top">[Top]</a></li>
<li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li>
</ul>
diff --git a/static/nposts.html b/static/nposts.html
index e70b982..6def8b2 100644
--- a/static/nposts.html
+++ b/static/nposts.html
@@ -17,7 +17,9 @@
<hr>
<ul style="margin: 0; padding: 0; display: inline">
<li style="display: inline"><a href="/{{ $board.Name }}/catalog">[Catalog]</a></li>
+ {{ if showArchive }}
<li style="display: inline"><a href="/{{ $board.Name }}/archive">[Archive]</a></li>
+ {{ end }}
<li style="display: inline"><a href="#bottom">[Bottom]</a></li>
<li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li>
</ul>
@@ -27,7 +29,9 @@
<hr>
<ul style="margin: 0; padding: 0; display: inline">
<li style="display: inline"><a href="/{{ $board.Name }}/catalog">[Catalog]</a></li>
+ {{ if showArchive }}
<li style="display: inline"><a href="/{{ $board.Name }}/archive">[Archive]</a></li>
+ {{ end }}
<li style="display: inline"><a id="bottom" href="#top">[Top]</a></li>
<li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li>
</ul>