You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
741 B

  1. {{define "ROOT"}}
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. {{template "commonHead"}}
  6. <title>Lint {{.Path}}</title>
  7. </head>
  8. <body>
  9. <h3>Lint for {{if .URL}}<a href="{{.URL}}">{{.Path}}<a/>{{else}}{{.Path}}{{end}}</h3>
  10. <form method="POST" action="/-/refresh">
  11. <input type="hidden" name="importPath" value="{{.Path}}">
  12. This report was generated {{.Updated|timeago}}. <input type="submit" value="Refresh">
  13. </form>
  14. {{range $f := .Files}}{{range .Problems}}
  15. <p>{{if .Line}}<a href="{{printf $.LineFmt $f.URL .Line}}" title="{{.LineText}}">{{$f.Name}}:{{.Line}}</a>{{else}}{{$f.Name}}{{end}}:
  16. {{.Text}}
  17. {{if .Link}} <a href="{{.Link}}">☞</a>{{end}}
  18. {{end}}{{end}}
  19. {{template "commonFooter"}}
  20. </body></html>
  21. {{end}}