Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a82ffc18
authored
Jul 29, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lowercase quota keys
parent
a2b627bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
circle/dashboard/store_api.py
+3
-3
circle/dashboard/templates/dashboard/store/list.html
+3
-3
No files found.
circle/dashboard/store_api.py
View file @
a82ffc18
...
...
@@ -104,9 +104,9 @@ class Store(object):
r
=
self
.
_request
(
self
.
username
)
quota
=
r
.
json
()
quota
.
update
({
'readable_used'
:
filesizeformat
(
float
(
quota
[
'
U
sed'
])),
'readable_soft'
:
filesizeformat
(
float
(
quota
[
'
S
oft'
])),
'readable_hard'
:
filesizeformat
(
float
(
quota
[
'
H
ard'
])),
'readable_used'
:
filesizeformat
(
float
(
quota
[
'
u
sed'
])),
'readable_soft'
:
filesizeformat
(
float
(
quota
[
'
s
oft'
])),
'readable_hard'
:
filesizeformat
(
float
(
quota
[
'
h
ard'
])),
})
return
quota
...
...
circle/dashboard/templates/dashboard/store/list.html
View file @
a82ffc18
...
...
@@ -15,8 +15,8 @@
<div
style=
"position: relative;"
>
<div
class=
"progress"
style=
"width: 100%"
>
<div
class=
"progress-bar"
role=
"progressbar"
aria-valuenow=
"{{ quota.
Used }}"
aria-valuemin=
"0"
aria-valuemax=
"{{ quota.H
ard }}"
style=
"width: {% widthratio quota.
Used quota.H
ard 100 %}%; min-width: 150px;"
>
aria-valuenow=
"{{ quota.
used }}"
aria-valuemin=
"0"
aria-valuemax=
"{{ quota.h
ard }}"
style=
"width: {% widthratio quota.
used quota.h
ard 100 %}%; min-width: 150px;"
>
<div
style=
"padding-top: 2px;"
>
{% blocktrans with used=quota.readable_used %}
{{ used }} used
...
...
@@ -28,7 +28,7 @@
title=
"{% trans "
Hard
limit
"
%}
:
{{
quota
.
readable_hard
}}"
>
</div>
<div
class=
"progress-marker"
id=
"progress-marker-soft"
style=
"background: orange;
left: {% widthratio quota.
Soft quota.H
ard 100 %}%"
left: {% widthratio quota.
soft quota.h
ard 100 %}%"
title=
"{% trans "
Soft
limit
"
%}
:
{{
quota
.
readable_soft
}}"
data-placement=
"top"
>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment