{% 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 #}
Logs
{# # Manager overview link #}
>> Status overview << |
|
|
{% for model in app.models %}
{% if model.name == "Test results" or model.name == "Service status changes" %}
{{ model.name }} |
|
|
{% endif %}
{% endfor %}
{# Config section #}
Configs
{% 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 %}
{{ model.name }} |
{% else %}
{{ model.name }} |
{% endif %}
{% if model.perms.add %}
{% trans 'Add' %} |
{% else %}
|
{% endif %}
{% if model.perms.change %}
{% trans 'Change' %} |
{% else %}
|
{% endif %}
{# #}
{# {{ model.name }} | #}
{# | #}
{# | #}
{#
#}
{% endif %}
{% endfor %}
{% else %}
{# ### Not superuser or not Serviceconfig app #}
{% endif %}
{% endfor %}
{% else %}
{% trans "You don't have permission to edit anything." %}
{% endif %}
{% endblock %}