list.html 1.24 KB
Newer Older
Kálmán Viktor committed
1
{% extends "dashboard/base.html" %}
2
{% load staticfiles %}
Kálmán Viktor committed
3 4
{% load i18n %}

5
{% block title-page %}{% trans "List" %} | {% trans "Store" %}{% endblock %}
Kálmán Viktor committed
6 7 8 9

{% block content %}
<div class="row">
  <div class="col-md-12">
10
    <div id="store-list-container">
11
      {% include "dashboard/store/_list-box.html" %}
12
    </div>
Kálmán Viktor committed
13 14 15
  </div>
</div>

16 17 18
<div style="position: relative;">
  <div class="progress" style="width: 100%">
    <div class="progress-bar" role="progressbar" 
Guba Sándor committed
19 20
      aria-valuenow="{{ quota.used }}" aria-valuemin="0" aria-valuemax="{{ quota.hard }}" 
      style="width: {% widthratio quota.used quota.hard 100 %}%; min-width: 150px;">
21
      <div>
22 23 24 25
        {% blocktrans with used=quota.readable_used %}
          {{ used }} used
        {% endblocktrans %}
      </div>
26
    </div>
27

28 29
    <div class="progress-marker" id="progress-marker-hard" data-placement="top"
      data-container="body"
30 31
      title="{% trans "Hard limit" %}: {{ quota.readable_hard }}">
    </div>
32
    <div class="progress-marker" id="progress-marker-soft" style="background: orange;
Guba Sándor committed
33
      left: {% widthratio quota.soft quota.hard 100 %}%"
34
      title="{% trans "Soft limit" %}: {{ quota.readable_soft }}"
35
      data-placement="top" data-container="body">
36
    </div>
37
  </div>
38 39
</div>

Kálmán Viktor committed
40
{% endblock %}