Improve index presentation
This commit is contained in:
parent
eadcb5a067
commit
073214716c
@ -1,40 +1,33 @@
|
|||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
|
<div>
|
||||||
<p>
|
<p>
|
||||||
Drag this bookmarklet: <a href="{{ .BookmarkletURL }}">Gropple</a> to your bookmark bar, and click it
|
Drag this bookmarklet: <a href="{{ .BookmarkletURL }}">Gropple</a> to your bookmark bar, and click it
|
||||||
on any page you want to grab the video from.
|
on any page you want to grab the video from.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{{ range $k, $v := .Downloads }}
|
|
||||||
<div>
|
|
||||||
<h4>{{ $v.Url }}</h4>
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th>state</th>
|
|
||||||
<td>{{ $v.State }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>percent</th>
|
|
||||||
<td>{{ $v.Percent }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>files</th>
|
|
||||||
<td>{{ range $i, $f := $v.Files }}{{ $f }} {{ end }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>exit code</th>
|
|
||||||
<td>{{ $v.ExitCode }}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<pre>
|
|
||||||
{{ range $i, $l := $v.Log }}
|
|
||||||
line: {{ $l }}
|
|
||||||
{{- end -}}
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<table class="pure-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>id</th><th>filename</th><th>url</th><th>state</th><th>percent</th><th>eta</th><th>finished</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{ range $k, $v := .Downloads }}
|
||||||
|
<tr>
|
||||||
|
<td>{{ $v.Id }}</td>
|
||||||
|
<td>{{ range $_, $f := $v.Files }}{{ $f }}<br>{{ end }}</td>
|
||||||
|
<td><a href="{{ $v.Url }}">link</a></td>
|
||||||
|
<td>{{ $v.State }}</td>
|
||||||
|
<td>{{ $v.Percent }}</td>
|
||||||
|
<td>{{ $v.Eta }}</td>
|
||||||
|
<td>{{ $v.Finished }}</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "js" }}
|
{{ define "js" }}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<link rel="stylesheet" href="https://unpkg.com/purecss@2.0.6/build/pure-min.css" integrity="sha384-Uu6IeWbM+gzNVXJcM9XV3SohHtmWE+3VGi496jvgX1jyvDTXfdK+rfZc8C1Aehk5" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://unpkg.com/purecss@2.0.6/build/pure-min.css" integrity="sha384-Uu6IeWbM+gzNVXJcM9XV3SohHtmWE+3VGi496jvgX1jyvDTXfdK+rfZc8C1Aehk5" crossorigin="anonymous">
|
||||||
<link rel="stylesheet" href="https://unpkg.com/purecss@2.0.6/build/grids-responsive-min.css">
|
<link rel="stylesheet" href="https://unpkg.com/purecss@2.0.6/build/grids-responsive-min.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body style="margin:4; padding:4">
|
||||||
{{ template "content" . }}
|
{{ template "content" . }}
|
||||||
</body>
|
</body>
|
||||||
{{ template "js" . }}
|
{{ template "js" . }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user