]> Sergey Matveev's repositories - godlighty.git/blobdiff - dirlist.tmpl
Use mtime instead of ctime
[godlighty.git] / dirlist.tmpl
index 5034c5f6f1dc586b4c414be1351cc92f068ebf5e..8fb266fad4c545397a4e50b802bcf4a3184478cc 100644 (file)
 <table border=1>
 <tr><th>&nbsp;</th><th>Name</th><th>Mtime</th><th>Size</th><th>Type</th></tr>
 {{$Dir := .Dir}}{{$Root := .Root}}{{range .Files}}<tr>
-  <td>{{.Idx}}</td>
+  <td {{if .Symlink}}rowspan="2"{{end}}>{{.Idx}}</td>
   <td><a href="{{$Root}}{{$Dir}}{{.Name}}{{if .IsDir}}/{{end -}}"><tt>
     {{- .Name}}{{if .IsDir}}/{{end}}</tt></a></td>
   <td><tt>{{.ModTime}}</tt></td>
   <td>{{.Size}}</td>
   <td><tt>{{if .IsDir}}dir{{else}}{{.Type}}{{end}}</tt></td>
-</tr>
+</tr>{{if .Symlink}}<tr><td colspan="4"><tt>-&gt; {{.Symlink}}</tt></td></tr>{{end}}
 {{end -}}
 </table>
 </body>