Add infobox to post detail (Example project)

This commit is contained in:
Juda Kaleta 2013-12-23 09:50:21 +01:00
parent 1eecbf358d
commit 572d321f80
2 changed files with 11 additions and 2 deletions

View file

@ -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 %}

View file

@ -3,7 +3,6 @@
{% load embed_video_tags %}
{% block content %}
{{ request.is_secure }}
<h1>Posts</h1>
<table class="table">