Added Watch On YouTube button

This commit is contained in:
Tiberiu Chibici 2019-01-01 16:23:51 +02:00
parent ad9138ae1f
commit 387358b072

View File

@ -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 %}
<p>
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_mark_video_unwatched' object.id %}"> <a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_mark_video_unwatched' object.id %}">
Mark not watched Mark not watched
</a> </a>
</p>
{% else %} {% else %}
<p>
<a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_mark_video_watched' object.id %}"> <a class="btn btn-secondary ajax-link" href="#" data-post-url="{% url 'ajax_action_mark_video_watched' object.id %}">
Mark watched Mark watched
</a> </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>