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

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

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

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<div class="progress" style="position: relative; overflow: visible;">
  <div class="progress-bar" role="progressbar" aria-valuenow="{{ quota.Used }}" aria-valuemin="0"
    aria-valuemax="{{ quota.Hard }}" style="width:
    {% if quota.Used > quota.Hard %}100{% else %}{% widthratio quota.Used quota.Hard 100 %}%{% endif %}%">
    <div style="padding-top: 2px;">
      {% blocktrans with used=quota.readable_used %}
        {{ used }} used
      {% endblocktrans %}
    </div>
  </div>
    <div class="progress-marker" id="progress-marker-hard" data-placement="left"
      title="{% trans "Hard limit" %}: {{ quota.readable_hard }}">
    </div>
    <div class="progress-marker" id="progress-marker-soft" style="background: orange; 
      left: {% widthratio quota.Soft quota.Hard 100 %}%"
      title="{% trans "Soft limit" %}: {{ quota.readable_soft }}"
      data-placement="left">
    </div>
</div>

Kálmán Viktor committed
35 36 37 38 39
{% endblock %}

{% block extra_js %}
  <script src="{{ STATIC_URL}}dashboard/store.js"></script>
{% endblock %}