better ui
This commit is contained in:
parent
d273b35e53
commit
5c770def41
|
@ -1,22 +1,8 @@
|
||||||
{embed '../../form.latte', path: '/redirect/download', method: 'GET'}
|
<div class="field is-grouped is-grouped-centered">
|
||||||
{block fields}
|
<p class="control">
|
||||||
<div class="field has-addons has-addons-centered">
|
<a target="_blank" href="{url_download($playAddr, $uniqueId, $id, true)}" class="button is-info">Watermark</a>
|
||||||
<div class="control">
|
</p>
|
||||||
<div class="select">
|
<p class="control">
|
||||||
<select name="watermark">
|
<a target="_blank" href="{url_download(url_video_external($uniqueId, $id), $uniqueId, $id, false)}" class="button">No watermark</a>
|
||||||
<option value="yes">WM</option>
|
</p>
|
||||||
<option value="no">No WM</option>
|
</div>
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="control">
|
|
||||||
<button type="submit" class="button is-success">
|
|
||||||
{include '../../icon.latte', icon: 'software-download', text: 'Download'}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<input type="hidden" name="playAddr" value="{$playAddr}" />
|
|
||||||
<input type="hidden" name="videoId" value="{$id}" />
|
|
||||||
<input type="hidden" name="authorUsername" value="{$uniqueId}" />
|
|
||||||
{/block}
|
|
||||||
{/embed}
|
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
<nav class="breadcrumb is-centered" aria-label="breadcrumbs">
|
<div class="field is-grouped is-grouped-centered">
|
||||||
<ul>
|
<p class="control">
|
||||||
<li>
|
<a class="button is-success" href="{url_video_internal($uniqueId, $id)}">
|
||||||
<a class="has-text-success" href="{url_video_internal($uniqueId, $id)}">
|
{include '../../icon.latte', icon: 'lock', text: 'Instance'}
|
||||||
{include '../../icon.latte', icon: 'lock', text: 'Instance link'}
|
</a>
|
||||||
</a>
|
</p>
|
||||||
</li>
|
<p class="control">
|
||||||
<li>
|
<a class="button is-warning" href="{url_video_external($uniqueId, $id)}">
|
||||||
<a class="has-text-warning" href="{url_video_external($uniqueId, $id)}">
|
{include '../../icon.latte', icon: 'lock-unlock', text: 'Original'}
|
||||||
{include '../../icon.latte', icon: 'lock-unlock', text: 'Original Link'}
|
</a>
|
||||||
</a>
|
</p>
|
||||||
</li>
|
</div>
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
<source src="{url_stream($item->video->playAddr)}" type="video/mp4" />
|
<source src="{url_stream($item->video->playAddr)}" type="video/mp4" />
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
<div class="has-text-centered">
|
<p class="has-text-centered"><b>Download video</b></p>
|
||||||
{include './common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $item->author->uniqueId}
|
{include './common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $item->author->uniqueId}
|
||||||
<div class="mt-2">{include './common/share.latte', uniqueId: $item->author->uniqueId, id: $item->id}</div>
|
<p class="has-text-centered"><b>Share link</b></p>
|
||||||
</div>
|
{include './common/share.latte', uniqueId: $item->author->uniqueId, id: $item->id}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
Loading…
Reference in a new issue