{% extends "passerelle/manage/service_view.html" %} {% load i18n passerelle gadjo staticfiles %} {% comment %} This file is part of passerelle-atreal-openads - a Publik connector to openADS Copyright (C) 2019 Atreal This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . {% endcomment %} {% block extrascripts %} {{ block.super }} {% endblock %} {% block appbar %}

{{ view.model.get_verbose_name }} - {{ object.title }} {% with status=object.get_availability_status %} {% if status %} {% if status.down %}{% trans 'Down' %}{% endif %} {% endif %} {% endwith %}

{% if object|can_edit:request.user and has_check_status %} {% trans 'availability check parameters' %} {% endif %} {% if object|can_edit:request.user %} {% trans 'logging parameters' %} {% endif %} {% if object|can_delete:request.user %} {% trans 'delete' %} {% endif %} {% if object|can_edit:request.user %} {% trans 'edit' %} {% endif %} {% if object|can_edit:request.user and collectivite_add_url%} {% trans "Add a collectivite" %} {% endif %} {% endblock %} {% block description %} {{ block.super }} {% if object.id %} {% if object.collectivites.count %} {% if object.collectivites.count == 1 %}

{% trans 'Collectivites' %} {% trans ":" %} {{ object.collectivites.first }}

{% elif object.collectivites.count < 10 %}

{% trans 'Collectivites' %}

{% else %}

{% trans 'Collectivites' %} {% trans ":" %} {{ object.collectivites.count }} {% trans 'collectivites' %}

{% endif %} {% endif %} {% if object.forward_files.count %}

{% trans "Forward files" %} {% trans ":" %} {{ object.forward_files.count }} {% if object.forward_files.count == 1 %}{% trans "forward file" %} {% else %}{% trans "forward files" %} {% endif %}

{% endif %} {% endif %} {% endblock %}