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
64bafc82
authored
7 years ago
by
Fukász Rómeó Ervin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: enhance storage list table percent
parent
a97fd1bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
circle/dashboard/templates/dashboard/storage-list/column-storage-used_percent.html
+8
-3
No files found.
circle/dashboard/templates/dashboard/storage-list/column-storage-used_percent.html
View file @
64bafc82
<div
class=
"progress"
>
<div
class=
"progress-bar progress-bar-success progress-bar-stripped"
role=
"progressbar"
style=
"min-width: 30px; width: {{ record.used_percent }}%"
>
{{ record.used_percent }}%
{% with record.used_percent as used_percent %}
<div
class=
"progress-bar progress-bar-stripped
{% if used_percent < 80 %}progress-bar-success
{% elif used_percent < 90 %}progress-bar-warning
{% else %}progress-bar-danger{% endif %}"
role=
"progressbar"
style=
"min-width: 30px; width: {{ used_percent }}%"
>
{{ used_percent }}%
</div>
{% endwith %}
</div>
This diff is collapsed.
Click to expand it.
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