Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
hide header if app has no interactive elements (bug 955828)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Jan 3, 2014
1 parent 3617699 commit 277347f
Showing 1 changed file with 16 additions and 14 deletions.
Expand Up @@ -53,23 +53,25 @@ <h3>{{ _('Content Ratings') }}</h3>
</tbody>
</table>

<h3>{{ _('Interactive Elements') }}</h3>
<div class="interactive-elements c">
{% set interactives = addon.get_interactives() %}
<div class="names">
{% set interactives = addon.get_interactives() %}
{% if interactives %}
<h3>{{ _('Interactive Elements') }}</h3>
<div class="interactive-elements c">
<div class="names">
{% for interactive in interactives %}
<span class="dot-sep">{{ interactive.name }}</span>

This comment has been minimized.

Copy link
@cvan

cvan Jan 3, 2014

Contributor

<li>?

{% endfor %}
</div>
{% set inter_icons = mkt.ratingsbodies.IARC_ICONS.interactive_elements %}
{% for interactive in interactives %}
<span class="dot-sep">{{ interactive.name }}</span>
{% set inter_icon = inter_icons[interactive.label] %}
{% if inter_icon %}
<img src="{{ media(inter_icon) }}"
class="icon {{ interactive.label }}" title="{{ interactive.name }}">
{% endif %}
{% endfor %}
</div>
{% set inter_icons = mkt.ratingsbodies.IARC_ICONS.interactive_elements %}
{% for interactive in interactives %}
{% set inter_icon = inter_icons[interactive.label] %}
{% if inter_icon %}
<img src="{{ media(inter_icon) }}"
class="icon {{ interactive.label }}" title="{{ interactive.name }}">
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</section>

Expand Down

0 comments on commit 277347f

Please sign in to comment.