Skip to content

Commit

Permalink
Merge pull request #63 from gdgistanbul/hide-language-if-missing
Browse files Browse the repository at this point in the history
Language and Complexity will not be written if they are missing.
  • Loading branch information
ozasadnyy committed Mar 6, 2015
2 parents 1fc7bf4 + e53c67a commit 84e5663
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _includes/sessions-modals.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
<div class="close-mask" data-dismiss="modal"></div>
</div>
<h4>{{ session.title }}</h4>
{% if session.language != null %}
<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>
{% endif %}
{% if session.video %}
<div class="theme-video embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="{{ session.video }}"></iframe>
Expand Down
4 changes: 4 additions & 0 deletions _includes/speakers-modals.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
{% for session_speaker in session.speakers %}
{% if session_speaker == speaker.id %}
<h4>{{ session.title }}</h4>
{% if session.language != null %}
<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>
{% endif %}
{% if session.video %}
<div class="theme-video embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="{{ session.video }}"></iframe>
Expand Down

0 comments on commit 84e5663

Please sign in to comment.