{# vim: set ts=2 et sts=2 sw=2: #}
{% macro print_readout(readout, locale=None, max_rows=10) %}
{% if not readout.hide_readout %}
{{ readout.title }}
{% for key, name in readout.modes %}
{{ name }}
{% endfor %}
{% if readout.description %}
{{ readout.description }}
{% endif %}
{{ readout.render(max_rows=max_rows)|safe }}
{% endif %}
{% endmacro %}
{% macro overview_section(readouts, printed_rows) %}
{# printed_rows is a tuple of pairs, (row, should_color), like so:
((row1, True/False), (row2, True/False), ... etc) #}
{{ _('Overview') }}
{% for row, should_color in printed_rows %}
{% if row.url %}
{{ row.title }}
{% else %}
{{ row.title }}
{% endif %}
{% trans numerator=number(row.numerator), denominator=number(row.denominator) %}
{{ numerator }}
of {{ denominator }}
{% endtrans %}
{{ row.percent }}%
{{ row.description }}
{% endfor %}
{{ _('User Interface') }}
{% trans url='https://localize.mozilla.org/' %}
A fully translated user interface improves the experience for
site visitors in your language. Help
translate the interface .
{% endtrans %}
{% endmacro %}
{% macro print_checkbox_row(label,
on_default_locale,
is_watching_default,
is_watching_other,
watch_view,
unwatch_view,
default_locale,
show_default=True,
show_other=True) %}
{{ label }}
{% if show_default %}
{% endif %}
{% if not on_default_locale and show_other %}
{% endif %}
{% endmacro %}
{% macro print_subscription_menu(default_locale_name,
current_locale_name,
on_default_locale,
is_watching_default_locale,
is_watching_other_locale,
is_watching_default_approved,
is_watching_other_approved,
default_locale,
show_default_waiting=True,
show_default_approved=True) %}
{% endmacro %}