aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-23 19:24:20 +0000
committerMax Magorsch <arzano@gentoo.org>2020-06-23 19:24:20 +0000
commite291d408336f7ddaf5618128a9b34a856c0b9c84 (patch)
tree072ca4d9342533a590b6d283369613330ac3e978 /web/templates/home/home.tmpl
parentImprove link to popular threads (diff)
downloadarchives-e291d408336f7ddaf5618128a9b34a856c0b9c84.tar.gz
archives-e291d408336f7ddaf5618128a9b34a856c0b9c84.tar.bz2
archives-e291d408336f7ddaf5618128a9b34a856c0b9c84.zip
Decode subjects correctly
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web/templates/home/home.tmpl')
-rw-r--r--web/templates/home/home.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/templates/home/home.tmpl b/web/templates/home/home.tmpl
index afef5cc..a46d3fc 100644
--- a/web/templates/home/home.tmpl
+++ b/web/templates/home/home.tmpl
@@ -45,7 +45,7 @@
<div class="mx-auto text-center">
<p class="mb-1"><a class="text-muted" href="/popular"><b>Recent Popular Threads</b></a></p>
{{range .PopularThreads}}
- <p class="mb-1"><a href="/{{.List}}/message/{{.Id}}" class="text-muted">{{.Subject}}</a></p>
+ <p class="mb-1"><a href="/{{.List}}/message/{{.Id}}" class="text-muted">{{.GetSubject}}</a></p>
{{end}}
</div>
</div>
@@ -87,7 +87,7 @@
{{$listName:=.Name}}
{{range .Messages}}
<tr>
- <td><a href="/{{$listName}}/message/{{.Id}}">{{.Subject}}</a></td>
+ <td><a href="/{{$listName}}/message/{{.Id}}">{{.GetSubject}}</a></td>
<td>{{.GetAuthorName}}</td>
</tr>
{{end}}