Commit a82ffc18 by Guba Sándor

lowercase quota keys

parent a2b627bb
...@@ -104,9 +104,9 @@ class Store(object): ...@@ -104,9 +104,9 @@ class Store(object):
r = self._request(self.username) r = self._request(self.username)
quota = r.json() quota = r.json()
quota.update({ quota.update({
'readable_used': filesizeformat(float(quota['Used'])), 'readable_used': filesizeformat(float(quota['used'])),
'readable_soft': filesizeformat(float(quota['Soft'])), 'readable_soft': filesizeformat(float(quota['soft'])),
'readable_hard': filesizeformat(float(quota['Hard'])), 'readable_hard': filesizeformat(float(quota['hard'])),
}) })
return quota return quota
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<div style="position: relative;"> <div style="position: relative;">
<div class="progress" style="width: 100%"> <div class="progress" style="width: 100%">
<div class="progress-bar" role="progressbar" <div class="progress-bar" role="progressbar"
aria-valuenow="{{ quota.Used }}" aria-valuemin="0" aria-valuemax="{{ quota.Hard }}" aria-valuenow="{{ quota.used }}" aria-valuemin="0" aria-valuemax="{{ quota.hard }}"
style="width: {% widthratio quota.Used quota.Hard 100 %}%; min-width: 150px;"> style="width: {% widthratio quota.used quota.hard 100 %}%; min-width: 150px;">
<div style="padding-top: 2px;"> <div style="padding-top: 2px;">
{% blocktrans with used=quota.readable_used %} {% blocktrans with used=quota.readable_used %}
{{ used }} used {{ used }} used
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
title="{% trans "Hard limit" %}: {{ quota.readable_hard }}"> title="{% trans "Hard limit" %}: {{ quota.readable_hard }}">
</div> </div>
<div class="progress-marker" id="progress-marker-soft" style="background: orange; <div class="progress-marker" id="progress-marker-soft" style="background: orange;
left: {% widthratio quota.Soft quota.Hard 100 %}%" left: {% widthratio quota.soft quota.hard 100 %}%"
title="{% trans "Soft limit" %}: {{ quota.readable_soft }}" title="{% trans "Soft limit" %}: {{ quota.readable_soft }}"
data-placement="top"> data-placement="top">
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment