Language and Complexity will not be written if they are missing.

This commit is contained in:
Said Tahsin Dane 2015-03-05 11:58:31 +02:00
parent 1fc7bf4cdb
commit e53c67aa0a
2 changed files with 8 additions and 0 deletions

View file

@ -12,8 +12,12 @@
<div class="close-mask" data-dismiss="modal"></div> <div class="close-mask" data-dismiss="modal"></div>
</div> </div>
<h4>{{ session.title }}</h4> <h4>{{ session.title }}</h4>
{% if session.language != null %}
<span class="theme-metadata"><span class="caption">Language: </span>{{ session.language }}</span> <span class="theme-metadata"><span class="caption">Language: </span>{{ session.language }}</span>
{% endif %}
{% if session.complexity != null %}
<span class="theme-metadata"><span class="caption">Complexity: </span>{{ session.complexity }}</span> <span class="theme-metadata"><span class="caption">Complexity: </span>{{ session.complexity }}</span>
{% endif %}
{% if session.video %} {% if session.video %}
<div class="theme-video embed-responsive embed-responsive-16by9"> <div class="theme-video embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="{{ session.video }}"></iframe> <iframe class="embed-responsive-item" src="{{ session.video }}"></iframe>

View file

@ -17,8 +17,12 @@
{% for session_speaker in session.speakers %} {% for session_speaker in session.speakers %}
{% if session_speaker == speaker.id %} {% if session_speaker == speaker.id %}
<h4>{{ session.title }}</h4> <h4>{{ session.title }}</h4>
{% if session.language != null %}
<span class="theme-metadata"><span class="caption">Language: </span>{{ session.language }}</span> <span class="theme-metadata"><span class="caption">Language: </span>{{ session.language }}</span>
{% endif %}
{% if session.complexity != null %}
<span class="theme-metadata"><span class="caption">Complexity: </span>{{ session.complexity }}</span> <span class="theme-metadata"><span class="caption">Complexity: </span>{{ session.complexity }}</span>
{% endif %}
{% if session.video %} {% if session.video %}
<div class="theme-video embed-responsive embed-responsive-16by9"> <div class="theme-video embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="{{ session.video }}"></iframe> <iframe class="embed-responsive-item" src="{{ session.video }}"></iframe>