diff options
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..81de88d --- /dev/null +++ b/index.html @@ -0,0 +1,90 @@ +<html> + <head> +<style> +html { + background: #222; + color: antiquewhite; + font-family: monospace; +} +table { + border-collapse: collapse; +} +th { + text-align: left; + border-bottom: 1px solid white; +} +td { + max-width: 1000px; + text-overflow: ellipsis; + overflow: hidden; + padding-right: 10px; + padding-bottom: 3px; + margin: 0; +} +tr > td:first-child { + min-width: 500px; +} +tr:hover { + background-color: #333; +} +a { + color: orange; +} +div { + float: right; +} +</style> + </head> + <body> + <h1>Index of {{.CurrentPath}}</h1> + <hr/> + <a style="float: right;" href="/ai_execute">Exec</a> + <table> + <!--<tr>--> + <!--<th>File</th>--> + <!--[><th>Export</th><]--> + <!--<th>Modtime</th>--> + <!--</tr>--> + <tr> + <td> + <a href="{{.CurrentPath}}">.</a> + </td> + <td> + [<a href="http://localhost:8080/gzarchive{{.CurrentPath}}">gzip</a>] + [<a href="/tararchive{{.CurrentPath}}">tar</a>] + </td> + <td></td> + </tr> + {{if ne .CurrentPath "/"}} + <tr> + <td> + <a href="{{.Parent}}">..</a> + </td> + <td> + [<a href="/gzarchive{{.Parent}}">gzip</a>] + [<a href="/tararchive{{.Parent}}">tar</a>] + </td> + <td></td> + </tr> + {{end}} + {{range .Files}} + <tr> + <td> + {{if .Info.IsDir}} + <a href="{{.Path}}">{{.Info.Name}}/</a> + {{else}} + <a href="{{.Path}}">{{.Info.Name}}</a> + {{end}} + </td> + <td> + {{if .Info.IsDir}} + [<a href="/gzarchive{{.Path}}">gzip</a>] + [<a href="/tararchive{{.Path}}">tar</a>] + {{end}} + </td> + <td>{{format .Info.ModTime}}</td> + </tr> + {{end}} + </table> + </body> +</html> |
