aboutsummaryrefslogtreecommitdiff
path: root/static/npost.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/npost.html')
-rw-r--r--static/npost.html18
1 files changed, 8 insertions, 10 deletions
diff --git a/static/npost.html b/static/npost.html
index 419a1a9..2f0778f 100644
--- a/static/npost.html
+++ b/static/npost.html
@@ -15,8 +15,6 @@
<meta property="og:image" content="{{ (index .Posts 0).Preview.Href }}" />
<meta name="twitter:image" content="{{ (index .Posts 0).Preview.Href }}" />
{{ end }}
-
-<script src="/static/js/posts.js"></script>
{{ end }}
{{ define "content" }}
@@ -25,7 +23,6 @@
<hr>
<ul style="margin: 0; padding: 0; display: inline">
<li style="display: inline"><a href="/{{ $board.Name }}">[Return]</a></li>
- <li style="display: inline"><a href="/{{ $board.Name }}/catalog">[Catalog]</a></li>
<li style="display: inline"><a href="#bottom">[Bottom]</a></li>
<li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li>
</ul>
@@ -36,23 +33,24 @@
<hr>
<ul style="position: absolute; left: 5px; margin: 0; padding: 0; display: inline">
<li style="display: inline"><a href="/{{ $board.Name }}">[Return]</a></li>
- <li style="display: inline"><a href="/{{ $board.Name }}/catalog">[Catalog]</a></li>
<li style="display: inline"><a id="bottom" href="#top">[Top]</a></li>
<li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li>
<li style="display: inline"><input id="autoreload-checkbox" type="checkbox" onclick="autoTimer()"> Auto refresh <span id="autoreload-countdown" style="visibility: hidden;">0</span></li>
</ul>
-{{ $replies := (index .Posts 0).Replies }}
+{{ $replies := (index .Posts 0).Replies }}
<span style="float: right;">{{ $replies.TotalItems }} / {{ $replies.TotalImgs }}</span>
-<div style="width: 500px; margin: 0 auto; text-align: center;">
- <span ><a id="reply-content" href="javascript:quote('{{ $board.Actor.Id }}', '{{ (index .Posts 0).Id }}', 'reply')">[Post a Reply]</a></span>
+
+<div style="width: 500px; height: 22px; margin: 0 auto; text-align: center;">
+{{ if eq (index .Posts 0).Type "Note" }}
+<span ><a id="reply-content" href="javascript:quote('{{ $board.Actor.Id }}', '{{ (index .Posts 0).Id }}', 'reply')">[Post a Reply]</a></span>
+{{ end }}
</div>
+
<hr>
{{ end }}
{{ define "script" }}
+<script src="/static/js/posts.js"></script>
<script src="/static/js/footerscript.js"></script>
<script src="/static/js/timer.js"></script>
-<script>
- viewLink("{{ .Board.Name }}", "{{ .Board.Actor.Id }}")
-</script>
{{ end }}