aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-23 18:18:25 +0000
committerMax Magorsch <arzano@gentoo.org>2020-06-23 18:18:25 +0000
commitbece19521a6bdea216d7cc39fee4aedf360c377f (patch)
tree68c2b93a9a27ab939215d6f6132f03a08c33e653
parentSpeed up the tableExists check (diff)
downloadarchives-bece19521a6bdea216d7cc39fee4aedf360c377f.tar.gz
archives-bece19521a6bdea216d7cc39fee4aedf360c377f.tar.bz2
archives-bece19521a6bdea216d7cc39fee4aedf360c377f.zip
Fix empty dates
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r--web/templates/list/show.tmpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/web/templates/list/show.tmpl b/web/templates/list/show.tmpl
index 40b01ef..7dd4dfc 100644
--- a/web/templates/list/show.tmpl
+++ b/web/templates/list/show.tmpl
@@ -16,10 +16,12 @@
</tr>
{{range .MessageData}}
- <tr>
- <td><a href="threads/{{.CombinedDate}}/">{{.CombinedDate}}</a></td>
- <td>{{.MessageCount}}</td>
- </tr>
+ {{if ne .CombinedDate ""}}
+ <tr>
+ <td><a href="threads/{{.CombinedDate}}/">{{.CombinedDate}}</a></td>
+ <td>{{.MessageCount}}</td>
+ </tr>
+ {{end}}
{{end}}
</table>