Browse Source

Linkify mailbox list

master
Simon Ser 4 years ago
parent
commit
fce17c9733
No known key found for this signature in database GPG Key ID: FDE7BE0E88F5E48
2 changed files with 1 additions and 4 deletions
  1. +1
    -1
      public/mailbox.html
  2. +0
    -3
      template.go

+ 1
- 1
public/mailbox.html View File

@@ -5,7 +5,7 @@
<p>Mailboxes:</p>
<ul>
{{range .Mailboxes}}
<li>{{.Name}}</li>
<li><a href="/mailbox/{{.Name}}">{{.Name}}</a></li>
{{end}}
</ul>



+ 0
- 3
template.go View File

@@ -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)
}


Loading…
Cancel
Save