summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/dashboard.html
blob: 518ae2062e247590f93508f89406492cd3926c9e (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
{% extends 'base.html' %}

{% block content %}
<div class="row">
  <div class="m-4 w-25 card text-center">
    <div class="card-header">
      Connected clients (ogClient)
    </div>
    <div class="card-body">
      <p class="card-text">{{ clients['clients'] | length }}</p>
    </div>
  </div>
  <div class="m-4 w-25 card text-center">
    <div class="card-header">
      Number of images
    </div>
    <div class="card-body">
      <p class="card-text">{{ images | length }}</p>
    </div>
  </div>
  <div class="m-4 w-25 card text-center">
    <div class="card-header">
      Latest images
    </div>
      {% for image in images[:10] %}
        <ul class="list-group list-group-horizontal">
          <li class="list-group-item w-50">
            {{ image['name'] }}
          </li>
          <li class="list-group-item w-50">
            {{ image['modified'] }}
          </li>
        </ul>
      {% endfor %}
  </div>
</div>
{% endblock %}