mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-16 21:30:23 +00:00
Add infobox to post detail (Example project)
This commit is contained in:
parent
1eecbf358d
commit
572d321f80
2 changed files with 11 additions and 2 deletions
|
|
@ -9,5 +9,15 @@
|
|||
<a href="{% url "posts:list" %}" class="pull-right"><small>Back to list</small></a>
|
||||
</h1>
|
||||
|
||||
{% video object.video "large" %}
|
||||
{% video object.video as my_video %}
|
||||
<pre>
|
||||
Backend: {{ my_video.backend }}
|
||||
URL: {{ my_video.url }}
|
||||
Code: {{ my_video.code }}
|
||||
Thumbnail: {{ my_video.thumbnail }}
|
||||
HTTPS: {% if my_video.is_secure %}Yes{% else %}No{% endif %}</pre>
|
||||
|
||||
{% video my_video "large" %}
|
||||
{% endvideo %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
{% load embed_video_tags %}
|
||||
|
||||
{% block content %}
|
||||
{{ request.is_secure }}
|
||||
<h1>Posts</h1>
|
||||
|
||||
<table class="table">
|
||||
|
|
|
|||
Loading…
Reference in a new issue