summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/list_images.html
blob: e2f56331442ccb61a8349598daf6dd670fdcb671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends 'images.html' %}
{% import "bootstrap/wtf.html" as wtf %}

{% set btn_back = true %}

{% block content %}

<h1 class="m-5">{{_('List images')}}</h1>
{% for r in responses %}
    {% set server = r['server']['name']%}
    {% set repos = r['repos'] %}
    {% for repo in repos.values() %}
        {% set repo_name = repo['name'] %}
        {% set images = repo['images'] %}
        {% if images %}
        {{ repo_name }} ({{ server }})
        <table class="table table-hover">
        <thead class="thead-light">
            <tr>
                <th>Name</th>
                <th>Size (MiB)</th>
                <th>Datasize (MiB)</th>
                <th>Last update</th>
            </tr>
        </thead>
        <tbody class="text-left">
            {% for img in images %}
            <tr>
                <th>{{img['name']}}</th>
                <td>{{img['size'] / 1024 ** 2}}</td>
                <td>{{img['datasize'] / 1024 ** 2}}</td>
                <td>{{img['modified']}}</td>
            </tr>
            {% endfor %}
        </tbody>
        </table>
        {% endif %}
    {% endfor %}
{% endfor %}

{% endblock %}