github.com/vlifesystems/rulehunter@v0.0.0-20180501090014-673078aa4a83/html/tag_tpl.go (about) 1 // Copyright (C) 2016-2017 vLife Systems Ltd <http://vlifesystems.com> 2 // Licensed under an MIT licence. Please see LICENSE.md for details. 3 4 package html 5 6 const tagTpl = ` 7 <!DOCTYPE html> 8 <html> 9 <head> 10 {{ index .Html "head" }} 11 <title>Reports for tag: {{ .Tag }}</title> 12 </head> 13 14 <body> 15 {{ index .Html "nav" }} 16 17 <div id="content"> 18 <div class="container"> 19 <h1>Reports for tag: {{ .Tag }}</h1> 20 21 <ul class="reports"> 22 {{range .Reports}} 23 <li> 24 <a class="title" href="{{ .Filename }}">{{ .Title }}</a><br /> 25 Date: {{ .DateTime }} 26 Mode: {{ .Mode }} 27 {{if .Category}} 28 Category: <a href="{{ .CategoryURL }}">{{ .Category }}</a> 29 {{end}} 30 Tags: 31 {{range $tag, $catLink := .Tags}} 32 <a href="{{ $catLink }}">{{ $tag }}</a> 33 {{end}} 34 </li> 35 {{end}} 36 </ul> 37 </div> 38 </div> 39 40 <div id="footer" class="container"> 41 {{ index .Html "footer" }} 42 </div> 43 44 {{ index .Html "bootstrapJS" }} 45 </body> 46 </html>`