aboutsummaryrefslogtreecommitdiff
path: root/static/ncatalog.html
diff options
context:
space:
mode:
authorFChannel <=>2021-02-16 01:11:55 -0800
committerFChannel <=>2021-02-16 01:11:55 -0800
commit38f01c1910c57af62ea362c37ad3ac2de5b24253 (patch)
tree1797446329cba7fcf046d75c42d4f1f956c213b7 /static/ncatalog.html
parent549e974b9911723b52503e1fde81ce0944e8b76e (diff)
cut down catalog query to only grab op
Diffstat (limited to 'static/ncatalog.html')
-rw-r--r--static/ncatalog.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/ncatalog.html b/static/ncatalog.html
index 3638d95..c5b6a23 100644
--- a/static/ncatalog.html
+++ b/static/ncatalog.html
@@ -61,7 +61,9 @@
{{ end }}
<div>
{{ $replies := .Replies }}
- <span style="display: block;">R: {{ $replies.TotalItems }}{{ if $replies.TotalImgs }}/ A: {{ $replies.TotalImgs }}{{ end }}</span>
+ {{ if $replies }}
+ <span style="display: block;">R: {{ $replies.TotalItems }}{{ if $replies.TotalImgs }}/ A: {{ $replies.TotalImgs }}{{ end }}</span>
+ {{ end }}
{{ if .Name }}
<span style="display: block; color: #0f0c5d;"><b>{{ .Name }}</b></span>
{{ end }}