Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fd8e6531
authored
Jul 24, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: better progress bar
parent
52b9dbf4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
circle/dashboard/static/dashboard/dashboard.css
+0
-5
circle/dashboard/templates/dashboard/store/list.html
+13
-10
No files found.
circle/dashboard/static/dashboard/dashboard.css
View file @
fd8e6531
...
@@ -832,11 +832,6 @@ textarea[name="list-new-namelist"] {
...
@@ -832,11 +832,6 @@ textarea[name="list-new-namelist"] {
margin-left
:
5px
;
margin-left
:
5px
;
}
}
.progress-bar
{
border-top-left-radius
:
4px
;
border-bottom-left-radius
:
4px
;
}
#progress-marker-hard
{
#progress-marker-hard
{
border-top-right-radius
:
4px
;
border-top-right-radius
:
4px
;
border-bottom-right-radius
:
4px
;
border-bottom-right-radius
:
4px
;
...
...
circle/dashboard/templates/dashboard/store/list.html
View file @
fd8e6531
...
@@ -12,24 +12,27 @@
...
@@ -12,24 +12,27 @@
</div>
</div>
</div>
</div>
<div
class=
"progress"
style=
"position: relative; overflow: visible;"
>
<div
style=
"position: relative;"
>
<div
class=
"progress-bar"
role=
"progressbar"
aria-valuenow=
"{{ quota.Used }}"
aria-valuemin=
"0"
<div
class=
"progress"
style=
"width: 100%"
>
aria-valuemax=
"{{ quota.Hard }}"
style=
"width:
<div
class=
"progress-bar"
role=
"progressbar"
{% if quota.Used > quota.Hard %}100{% else %}{% widthratio quota.Used quota.Hard 100 %}%{% endif %}%"
>
aria-valuenow=
"{{ quota.Used }}"
aria-valuemin=
"0"
aria-valuemax=
"{{ quota.Hard }}"
<div
style=
"padding-top: 2px;"
>
style=
"width: {% widthratio quota.Used quota.Hard 100 %}%; min-width: 150px;"
>
{% blocktrans with used=quota.readable_used %}
<div
style=
"padding-top: 2px;"
>
{{ used }} used
{% blocktrans with used=quota.readable_used %}
{% endblocktrans %}
{{ used }} used
{% endblocktrans %}
</div>
</div>
</div>
</div>
<div
class=
"progress-marker"
id=
"progress-marker-hard"
data-placement=
"left"
<div
class=
"progress-marker"
id=
"progress-marker-hard"
data-placement=
"left"
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=
"
left
"
>
data-placement=
"
top
"
>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
...
...
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