"Fossies" - the Fresh Open Source Software Archive

Member "horizon-14.0.4/openstack_dashboard/dashboards/project/volumes/templates/volumes/_limits.html" (22 Oct 2019, 2786 Bytes) of package /linux/misc/openstack/horizon-14.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {% load i18n horizon humanize bootstrap %}
    2 
    3 <h3>{% trans "Description:" %}</h3>
    4 
    5 <p>{% block title %}{% trans "Volumes are block devices that can be attached to instances." %}{% endblock %}</p>
    6 
    7 <div id="id_show_volume_type_desc_div">
    8   <h3>{% trans "Volume Type Description:" %}</h3>
    9   <h4>
   10     <strong id="id_show_volume_type_name"></strong>
   11   </h4>
   12   <p id="id_show_volume_type_desc"></p>
   13 </div>
   14 
   15 <h3>{% block head %}{% trans "Volume Limits" %}{% endblock %}</h3>
   16 
   17 <div class="quota_title">
   18   <div class="pull-left">
   19     <strong>{% trans "Total Gibibytes" %}</strong>
   20   </div>
   21   <span class="pull-right">
   22     {% blocktrans with used=usages.gigabytes.used|intcomma quota=usages.gigabytes.quota|intcomma|quotainf %}{{ used }} of {{ quota }} GiB Used{% endblocktrans %}
   23   </span>
   24 </div>
   25 
   26 {{ minifyspace }}
   27 <div id="quota_size"
   28      data-progress-indicator-for="id_size"
   29      data-quota-limit="{{ usages.gigabytes.quota }}"
   30      data-quota-used={% block gigabytes_used_progress %}"{{ usages.gigabytes.used }}"{% endblock %}
   31      class="quota_bar">
   32   {% widthratio usages.gigabytes.used usages.gigabytes.quota 100 as gigabytes_percent %}
   33   {% bs_progress_bar gigabytes_percent 0 %}
   34 </div>
   35 {{ endminifyspace }}
   36 
   37 <div class="quota_title">
   38   <div class="pull-left">
   39     <strong>{% block type_title %}{% trans "Number of Volumes" %}{% endblock %}</strong>
   40   </div>
   41   <span class="pull-right">
   42     {% block used_of_quota %}
   43       {% blocktrans with used=usages.volumes.used|intcomma quota=usages.volumes.quota|intcomma|quotainf %}{{ used }} of {{ quota }} Used{% endblocktrans %}
   44     {% endblock %}
   45   </span>
   46 </div>
   47 
   48 {{ minifyspace }}
   49 <div id={% block type_id %}"quota_volumes"{% endblock %}
   50      data-quota-limit={% block total_progress %}"{{ usages.volumes.quota }}"{% endblock %}
   51      data-quota-used={% block used_progress %}"{{ usages.volumes.used }}"{% endblock %}
   52      class="quota_bar">
   53   {% block show_progress_bar %}
   54     {% widthratio usages.volumes.used usages.volumes.quota 100 as volumes_percent %}
   55     {% if numRequestedItems %}
   56       {% widthratio 100 usages.volumes.quota numRequestedItems as single_step %}
   57     {% else %}
   58       {% widthratio 100 usages.volumes.quota 1 as single_step %}
   59     {% endif %}
   60     {% bs_progress_bar volumes_percent single_step %}
   61   {% endblock %}
   62 </div>
   63 {{ endminifyspace }}
   64 
   65 <script type="text/javascript" charset="utf-8">
   66   if(typeof horizon.Quota !== 'undefined') {
   67     horizon.Quota.init();
   68   } else {
   69     addHorizonLoadEvent(function() {
   70       horizon.Quota.init();
   71     });
   72   }
   73 
   74   if(typeof horizon.Volumes !== 'undefined') {
   75     horizon.Volumes.initWithTypes({{ volume_types|safe|default:"{}" }});
   76   } else {
   77     addHorizonLoadEvent(function() {
   78       horizon.Volumes.initWithTypes({{ volume_types|safe|default:"{}" }});
   79     });
   80   }
   81 </script>