Put hidden d2c-button dev behind waffle flag.

This commit is contained in:
Rob Hudson 2012-04-12 14:41:13 -07:00
Родитель e82e2d3049
Коммит 7b711fd149
1 изменённых файлов: 11 добавлений и 9 удалений

Просмотреть файл

@ -70,15 +70,17 @@
{% endif %}
{% endif %}
{% with reasons=version.is_compatible[1] %}
<div class="d2c-reasons-popup popup">
<p>{% trans app=APP.pretty %}
This add-on is not compatible with your version of {{ app }} because of
the following:
{% endtrans %}</p>
<ul>{% for reason in reasons %}<li>{{ reason }}</li>{% endfor %}</ul>
</div>
{% endwith %}
{% if waffle.switch('d2c-buttons') %}
{% with reasons=version.is_compatible[1] %}
<div class="d2c-reasons-popup popup">
<p>{% trans app=APP.pretty %}
This add-on is not compatible with your version of {{ app }} because of
the following:
{% endtrans %}</p>
<ul>{% for reason in reasons %}<li>{{ reason }}</li>{% endfor %}</ul>
</div>
{% endwith %}
{% endif %}
</div> {# install-shell #}