mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2024-12-27 13:11:22 +01:00
Merge pull request #63 from gdgistanbul/hide-language-if-missing
Language and Complexity will not be written if they are missing.
This commit is contained in:
commit
84e56636f4
2 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue