mvp
This commit is contained in:
43
templates/index.html
Normal file
43
templates/index.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Srinidhi Youtube videos</title>
|
||||
<!-- Diable favicon requests: https://stackoverflow.com/a/13416784 -->
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/">
|
||||
<input type="text" name="youtube_url">
|
||||
<input type="submit" value="Ask">
|
||||
</form>
|
||||
<table>
|
||||
<caption>Vidoes</caption>
|
||||
<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>{{ .Title }}</td>
|
||||
<td>
|
||||
{{ if eq .Status "Done" }}
|
||||
<a href="./vids/{{ .FileName }}">Watch</a>
|
||||
{{ else if eq .Status "InProgress" }}
|
||||
{{ .Progress }}
|
||||
{{ else }}
|
||||
{{ .Status }}
|
||||
{{ end }}
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user