aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-02 18:29:06 +0100
committerSimon Ser <contact@emersion.fr>2019-12-02 18:29:06 +0100
commitfce17c9733eb38636603e8c508c2e7936426bf2c (patch)
tree8428d79bec94c7e7ae867629d262a8c30b2b763a
parent39629b074063f4f33d8b82c22023d7207bc431de (diff)
downloadalps-fce17c9733eb38636603e8c508c2e7936426bf2c.tar.gz
alps-fce17c9733eb38636603e8c508c2e7936426bf2c.zip
Linkify mailbox list
-rw-r--r--public/mailbox.html2
-rw-r--r--template.go3
2 files changed, 1 insertions, 4 deletions
diff --git a/public/mailbox.html b/public/mailbox.html
index 2f5cdb6..efae0d9 100644
--- a/public/mailbox.html
+++ b/public/mailbox.html
@@ -5,7 +5,7 @@
<p>Mailboxes:</p>
<ul>
{{range .Mailboxes}}
- <li>{{.Name}}</li>
+ <li><a href="/mailbox/{{.Name}}">{{.Name}}</a></li>
{{end}}
</ul>
diff --git a/template.go b/template.go
index fae5c7f..c7db0ae 100644
--- a/template.go
+++ b/template.go
@@ -1,7 +1,6 @@
package koushin
import (
- "fmt"
"html/template"
"io"
@@ -12,8 +11,6 @@ type tmpl struct {
t *template.Template
}
-var _ = fmt.Printf
-
func (t *tmpl) Render(w io.Writer, name string, data interface{}, c echo.Context) error {
return t.t.ExecuteTemplate(w, name, data)
}