Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
circle/dashboard/static/dashboard/dashboard.css
+0
-5
circle/dashboard/templates/dashboard/store/list.html
+8
-5
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,23 +12,26 @@
...
@@ -12,23 +12,26 @@
</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 }}"
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
{% endblocktrans %}
{% 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>
...
...
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