4 <title>Index of {{.Dir}}</title>
13 <tr><th> </th><th>Name</th><th>Mtime</th><th>Size</th><th>Type</th></tr>
14 {{$Dir := .Dir}}{{$Root := .Root}}{{range .Files}}<tr>
15 <td {{if .Symlink}}rowspan="2"{{end}}>{{.Idx}}</td>
16 <td><a href="{{$Root}}{{$Dir}}{{.Name}}{{if .IsDir}}/{{end -}}"><tt>
17 {{- .Name}}{{if .IsDir}}/{{end}}</tt></a></td>
18 <td><tt>{{.ModTime}}</tt></td>
20 <td><tt>{{if .IsDir}}dir{{else}}{{.Type}}{{end}}</tt></td>
21 </tr>{{if .Symlink}}<tr><td colspan="4"><tt>-> {{.Symlink}}</tt></td></tr>{{end}}