remove old table
This commit is contained in:
parent
e2ac680121
commit
1a77862e4a
@ -53,67 +53,32 @@
|
|||||||
<input class="btn btn-outline-primary mx-2" type="submit" value="Download">
|
<input class="btn btn-outline-primary mx-2" type="submit" value="Download">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="row row-cols-1 row-cols-md-3 row-cols-lg-4 m-4 g-3">
|
<div class="row row-cols-1 row-cols-md-3 row-cols-lg-4 m-4 g-3">
|
||||||
{{ range .Items }}
|
{{ range .Items }}
|
||||||
<div class="col my-2">
|
<div class="col my-2">
|
||||||
<div class="card h-100">
|
<div class="card h-100">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">
|
<h5 class="card-title">
|
||||||
{{ if eq .Title "Loading" }}
|
{{ if eq .Title "Loading" }}
|
||||||
<span data-yttitle="" data-ytid="{{.Id}}">Loading...</span>
|
<span data-yttitle="" data-ytid="{{.Id}}">Loading...</span>
|
||||||
{{ else }}
|
|
||||||
{{ .Title }}
|
|
||||||
{{ end }}
|
|
||||||
</h5>
|
|
||||||
<h6 class="card-subtitle mb-2 text-muted">On {{ .Date }}</h6>
|
|
||||||
<a href="{{ .URL }}" class="card-link d-block mb-2">Youtube Link</a>
|
|
||||||
{{ if eq .Status "Done" }}
|
|
||||||
<a class="btn btn-primary w-100" target="_blank" href="{{ $.VidoesUrl }}/{{ .FileName }}">Watch</a>
|
|
||||||
{{ else if eq .Status "InProgress" }}
|
|
||||||
<span class="border border-info w-100 text-center d-block" data-ytstatus="progress" data-ytid="{{.Id}}">In Progress</span>
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<span class="border border-danger w-100 text-center d-block"> {{ .Status }} </span>
|
{{ .Title }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</h5>
|
||||||
|
<h6 class="card-subtitle mb-2 text-muted">On {{ .Date }}</h6>
|
||||||
|
<a href="{{ .URL }}" class="card-link d-block mb-2">Youtube Link</a>
|
||||||
|
{{ if eq .Status "Done" }}
|
||||||
|
<a class="btn btn-primary w-100" target="_blank" href="{{ $.VidoesUrl }}/{{ .FileName }}">Watch</a>
|
||||||
|
{{ else if eq .Status "InProgress" }}
|
||||||
|
<span class="border border-info w-100 text-center d-block" data-ytstatus="progress" data-ytid="{{.Id}}">In Progress</span>
|
||||||
|
{{ else }}
|
||||||
|
<span class="border border-danger w-100 text-center d-block"> {{ .Status }} </span>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
<table>
|
{{ end }}
|
||||||
<caption>All Vidoes</caption>
|
</div>
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Date</th>
|
|
||||||
<th>URL</th>
|
|
||||||
<th>Title</th>
|
|
||||||
<th>Link</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{ range .Items }}
|
|
||||||
<tr>
|
|
||||||
<td>{{ .Date }}</td>
|
|
||||||
<td>{{ .URL }}</td>
|
|
||||||
<td>
|
|
||||||
{{ if eq .Title "Loading" }}
|
|
||||||
<span data-yttitle="" data-ytid="{{.Id}}">Loading...</span>
|
|
||||||
{{ else }}
|
|
||||||
{{ .Title }}
|
|
||||||
{{ end }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ if eq .Status "Done" }}
|
|
||||||
<a target="_blank" href="{{ $.VidoesUrl }}/{{ .FileName }}">Watch</a>
|
|
||||||
{{ else if eq .Status "InProgress" }}
|
|
||||||
<span data-ytstatus="progress" data-ytid="{{.Id}}">In Progress</span>
|
|
||||||
{{ else }}
|
|
||||||
{{ .Status }}
|
|
||||||
{{ end }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{{ end }}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user