Linkify mailbox list
This commit is contained in:
parent
39629b0740
commit
fce17c9733
2 changed files with 1 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
<p>Mailboxes:</p>
|
<p>Mailboxes:</p>
|
||||||
<ul>
|
<ul>
|
||||||
{{range .Mailboxes}}
|
{{range .Mailboxes}}
|
||||||
<li>{{.Name}}</li>
|
<li><a href="/mailbox/{{.Name}}">{{.Name}}</a></li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package koushin
|
package koushin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"html/template"
|
"html/template"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
|
@ -12,8 +11,6 @@ type tmpl struct {
|
||||||
t *template.Template
|
t *template.Template
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ = fmt.Printf
|
|
||||||
|
|
||||||
func (t *tmpl) Render(w io.Writer, name string, data interface{}, c echo.Context) error {
|
func (t *tmpl) Render(w io.Writer, name string, data interface{}, c echo.Context) error {
|
||||||
return t.t.ExecuteTemplate(w, name, data)
|
return t.t.ExecuteTemplate(w, name, data)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue