{% extends "aggregator/base.html" %} {% load pagination_tags %} {% block content %} {% if user.is_superuser %} {% include "aggregator/publish.html" with csw_resourcetype=service.csw_resourcetype csw_source=service.url publish_type='Service' %} {% endif %}
{% if user.is_superuser %} {% endif %}
{% if user.is_superuser %} Administrative actions:
{% csrf_token %}
{% endif %}
{% if user.is_superuser %} {% endif %}
Type {{ service.get_type_display }}
Name {{ service.title }}
Abstract {{ service.abstract }}
URL
Monitoring Period {% if service.checks_count > 0 %}
  • First Check: {{ service.first_check }}
  • Last Check: {{ service.last_check }}
  • Total Checks: {{ service.checks_count }}
  • Reliability: {{ service.reliability }}
{% endif %}

Layers ({{ service.layer_set.all.count }})

{% with service.layer_set.all as layer_set %} {% if layer_set %} {% autopaginate layer_set 10 %} {% paginate %}
{% for layer in layer_set %} {% endfor %}
Info Last Check Status Response Times Reliability
{% if layer.thumbnail %} {% endif %}
  • Name: {{ layer.name }}
  • Title: {{ layer.title }}
  • Abstract: {{ layer.abstract|truncatewords:20 }}
{% if layer.checks_count > 0 %}
  • {{ layer.last_updated }}
  • {{ layer.last_response_time|floatformat:2 }}s
{% endif %}
{% if layer.checks_count > 0 %} {% if layer.last_status %} {% else %} {% endif %} {% endif %}
  • Min: {{ layer.min_response_time|floatformat:2 }}s
  • Average: {{ layer.average_response_time|floatformat:2 }}s
  • Max: {{ layer.max_response_time|floatformat:2 }}s
{% if layer.checks_count > 0 %} {% if layer.reliability > 97 %} {% else %} {% endif %} {% endif %}
{% else %}

No layers are available.

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