]> git.parisson.com Git - teleforma.git/commitdiff
update media title
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 7 Feb 2014 18:14:43 +0000 (19:14 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 7 Feb 2014 18:14:43 +0000 (19:14 +0100)
teleforma/templates/teleforma/seminar_media_video.html

index aa310d4f01a9c4937353f8c94fedbb409033b461..8940544d653d50bb16c55711881bbb1a0764d471 100644 (file)
@@ -114,8 +114,7 @@ $(window).ready(function(){
 <div class="course_content" id="media_infos">
 <dl class="listing">
 
-<dt>{% trans "Title" %}</dt><dd>{{ media.item.title }}</dd>
-
+<dt>{% trans "Title" %}</dt><dd>{% if media.title %}{{ media.title }}{% else %}{{ media.item.title }}{% endif %}</dd>
 {% with seminar.professor.all as professors %}
   {% if professors %}
     <dt>{% if professors.count > 1 %}{% trans "Professors" %}{% else %}{% trans "Professor" %}{% endif %}</dt>