{% extends "scrutiny/base.html" %}

{% block appbar %}
  <h2>Deployments of {{ module.name }}</h2>
{% endblock %}

{% block content %}
  <div>

    <dl class="deployments">
      {% regroup versions by version.version as versions_list %}
      {% for version in versions_list %}
        <dt>{{ version.grouper }} </dt>
        <dd><ul>{% for installed_version in version.list %}
          <li>{{ installed_version.service.platform.project.title }}
            {{ installed_version.service.platform.title }} /
            {{ installed_version.service.service.title }}</li>
        {% endfor %}</ul>
        </dd>
      {% endfor %}
    </dl>
  </div>

  <p><a class="button" href="json">As JSON</a></p>

{% endblock %}

{% block page-end %}
{% endblock %}
