improve export data as hex for gres

This commit is contained in:
john
2019-09-01 21:34:15 +08:00
parent 15a6680833
commit 6ccc4d119f
7 changed files with 21 additions and 20 deletions

View File

@ -284,8 +284,8 @@ func (s *Server) listDir(r *Request, f http.File) {
}
r.Response.Write(`<tr>`)
r.Response.Writef(`<td><a href="%s/%s">%s</a></td>`, r.URL.Path, name, ghtml.SpecialChars(name))
r.Response.Writef(`<td style="width:80px;text-align:center;">%s</td>`, size)
r.Response.Writef(`<td>%s</td>`, gtime.New(file.ModTime()).ISO8601())
r.Response.Writef(`<td style="width:80px;text-align:center;">%s</td>`, size)
r.Response.Write(`</tr>`)
}
r.Response.Write(`</table>`)