mirror of
https://github.com/chibicitiberiu/ytsm.git
synced 2024-02-24 05:43:31 +00:00
Added Watch On YouTube button
This commit is contained in:
parent
ad9138ae1f
commit
387358b072
@ -42,24 +42,38 @@
|
|||||||
|
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<h5>Manage video</h5>
|
<h5>Manage video</h5>
|
||||||
|
<p>
|
||||||
|
<a class="btn btn-secondary" href="https://youtube.com/watch?v={{ object.video_id }}">
|
||||||
|
Watch on YouTube <span class="typcn typcn-social-youtube"></span>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
{% if object.watched %}
|
{% if object.watched %}
|
||||||
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_mark_video_unwatched' object.id %}">
|
<p>
|
||||||
Mark not watched
|
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_mark_video_unwatched' object.id %}">
|
||||||
</a>
|
Mark not watched
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_mark_video_watched' object.id %}">
|
<p>
|
||||||
Mark watched
|
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_mark_video_watched' object.id %}">
|
||||||
</a>
|
Mark watched
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if object.downloaded_path %}
|
{% if object.downloaded_path %}
|
||||||
|
<p>
|
||||||
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_delete_video_files' object.id %}">
|
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_delete_video_files' object.id %}">
|
||||||
Delete downloaded
|
Delete downloaded
|
||||||
</a>
|
</a>
|
||||||
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<p>
|
||||||
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_download_video_files' object.id %}" >
|
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_download_video_files' object.id %}" >
|
||||||
Download
|
Download
|
||||||
</a>
|
</a>
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user