mugit/web/templates/index.html (view raw)
| 1 | {{ define "index" }} |
| 2 | <!DOCTYPE html> |
| 3 | <html> |
| 4 | <head> |
| 5 | {{ template "head" . }} |
| 6 | <title>{{ .meta.Title }}</title> |
| 7 | </head> |
| 8 | <header> |
| 9 | <h1>{{ .meta.Title }}</h1> |
| 10 | <h2>{{ .meta.Description }}</h2> |
| 11 | </header> |
| 12 | <body> |
| 13 | <main> |
| 14 | <table class="index"> |
| 15 | <thead> |
| 16 | <tr class="nohover"> |
| 17 | <th class="url">Name</th> |
| 18 | <th class="desc">Description</th> |
| 19 | <th class="idle">Idle</th> |
| 20 | </tr> |
| 21 | </thead> |
| 22 | <tbody> |
| 23 | {{ range .repos }} |
| 24 | <tr> |
| 25 | <td class="url"><a href="/{{ .Name }}">{{ .Name }}</a></td> |
| 26 | <td class="desc">{{ .Desc }}</td> |
| 27 | <td class="idle">{{ humanTime .LastCommit }}</td> |
| 28 | </tr> |
| 29 | {{ end}} |
| 30 | </tbody> |
| 31 | </table> |
| 32 | </main> |
| 33 | </body> |
| 34 | </html> |
| 35 | {{ end }} |