{% extends "master-admin.html" %} {% block main %} {% if user.is_admin %}

{{ title }}

{% for p in available %} {%- if p in enabled %} {%- set highlight = "hl-enabled" %} {%- set actpath = "disable" %} {%- set actlabel = "Disable" %} {%- if p in changed %} {%- if changed[p] == 'enabled' %} {%- set highlight = "hl-enabled-new" %} {%- endif %} {%- endif %} {%- else %} {%- set highlight = "hl-disabled" %} {%- set actpath = "enable" %} {%- set actlabel = "Enable" %} {%- if p in changed %} {%- if changed[p] == 'disabled' %} {%- set highlight = "hl-disabled-new" %} {%- endif %} {%- endif %} {%- endif %}

{{ p }}

{%- if available[p].get_config_obj() %} {%- if p in enabled %}

Configure

{%- else %}

Configure

{%- endif %} {%- endif %}
{%- if available[p].admin %} {%- if p in enabled %}

Manage

{%- else %}

Manage

{%- endif %} {% endif %}
{% endfor %} {% endif %} {% endblock %}