add download attribute to vide/audio links
This commit is contained in:
@@ -35,14 +35,20 @@
|
||||
</tr>
|
||||
{{range .videos}}
|
||||
<tr>
|
||||
<td><a href="/video/{{.ID}}">{{.Title}}</a></td>
|
||||
<td>
|
||||
{{if eq .Status "completed"}}
|
||||
<a href="/video/{{.ID}}">{{.Title}}</a>
|
||||
{{else}}
|
||||
{{.Title}}
|
||||
{{end}}
|
||||
</td>
|
||||
<td><a href="{{.URL}}">{{.URL}}</a></td>
|
||||
<td>{{.Length}}</td>
|
||||
<td>{{.Status}}</td>
|
||||
<td>
|
||||
{{if eq .Status "completed"}}
|
||||
<a href="/downloads/video/{{.VideoFilename}}">Download Video ({{.VideoSize}})</a> |
|
||||
<a href="/downloads/audio/{{.AudioFilename}}">Download Audio ({{.AudioSize}})</a>
|
||||
<a href="/downloads/video/{{.VideoFilename}}" download>Download Video ({{.VideoSize}})</a> |
|
||||
<a href="/downloads/audio/{{.AudioFilename}}" download>Download Audio ({{.AudioSize}})</a>
|
||||
{{else if eq .Status "failed"}}
|
||||
<form action="/video/{{.ID}}/restart" method="post" style="display:inline;">
|
||||
<button type="submit">Restart</button>
|
||||
|
Reference in New Issue
Block a user