github.com/vlifesystems/rulehunter@v0.0.0-20180501090014-673078aa4a83/html/reports_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 reportsTpl = ` 7 <!DOCTYPE html> 8 <html> 9 <head> 10 {{ index .Html "head" }} 11 <title>Reports</title> 12 </head> 13 14 <body> 15 {{ index .Html "nav" }} 16 17 <div id="content"> 18 <div class="container"> 19 <h1>Reports</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 {{if .Tags}} 31 Tags: 32 {{range $tag, $catLink := .Tags}} 33 <a href="{{ $catLink }}">{{ $tag }}</a> 34 {{end}} 35 {{end}} 36 </li> 37 {{end}} 38 </ul> 39 </div> 40 </div> 41 42 <div id="footer" class="container"> 43 {{ index .Html "footer" }} 44 </div> 45 46 {{ index .Html "bootstrapJS" }} 47 </body> 48 </html>`