{% extends "admin-copies/index.html" %} {% load i18n admin_static %} {% block content %}
{% if app_list %} {% for app in app_list %} {% if app.name == "Serviceconfig" and not user.is_superuser %} {# Special list for common user #} {# Logs section #}
{# # Manager overview link #} {% for model in app.models %} {% if model.name == "Test results" or model.name == "Service status changes" %} {% endif %} {% endfor %}
Logs
>> Status overview <<    
{{ model.name }}    
{# Config section #}
{% for model in app.models %} {# {% if model.name == "Services" or model.name == "Servers" or model.name == "DB cleanup policies" or model.name == "Testing plans" %} #} {% if model.name == "Services" or model.name == "Servers" or model.name == "Testing plans" %} {% if model.perms.change %} {% else %} {% endif %} {% if model.perms.add %} {% else %} {% endif %} {% if model.perms.change %} {% else %} {% endif %} {# #} {# #} {# #} {# #} {# #} {% endif %} {% endfor %}
Configs
{{ model.name }}{{ model.name }}{% trans 'Add' %} {% trans 'Change' %} 
{{ model.name }}  
{% else %} {# ### Not superuser or not Serviceconfig app #}
{% for model in app.models %} {# {{ model.admin_url }} #} {# {{ model.name|truncatewords:1 }} #} {% if model.name|truncatewords:1 != "Configs: ..." %} {% if model.perms.change %} {% else %} {% endif %} {% if model.perms.add %} {% else %} {% endif %} {% if model.perms.change %} {% else %} {% endif %} {% endif %} {% endfor %}
{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}
{{ model.name }}{{ model.name }}{% trans 'Add' %} {% trans 'Change' %} 
{% endif %} {% endfor %} {% else %}

{% trans "You don't have permission to edit anything." %}

{% endif %}
{% endblock %}