Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
a623b876
Commit
a623b876
authored
Dec 19, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'github/master' into portable
parents
62b25d7a
010f7d39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
16 deletions
+11
-16
debomatic-webui/public/javascripts/page_history.js
debomatic-webui/public/javascripts/page_history.js
+6
-16
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+5
-0
No files found.
debomatic-webui/public/javascripts/page_history.js
View file @
a623b876
...
@@ -235,7 +235,12 @@ function Page_History() {
...
@@ -235,7 +235,12 @@ function Page_History() {
}
}
var
options
=
{
var
options
=
{
seriesBarDistance
:
12
seriesBarDistance
:
12
,
axisX
:
{
labelInterpolationFnc
:
function
(
value
)
{
return
value
+
"
<br /><span class='size'>
"
+
total_sizes
[
value
]
+
'
MB</span>
'
;
}
}
};
};
Chartist
.
Bar
(
'
#disk-chart
'
,
{
Chartist
.
Bar
(
'
#disk-chart
'
,
{
...
@@ -243,21 +248,6 @@ function Page_History() {
...
@@ -243,21 +248,6 @@ function Page_History() {
series
:
series
series
:
series
},
options
);
},
options
);
_create_graph_tooltip
(
"
#disk-chart
"
,
'
.ct-bar
'
,
"
MB
"
);
_create_graph_tooltip
(
"
#disk-chart
"
,
'
.ct-bar
'
,
"
MB
"
);
// WORKAROUND: add total spaces to label
// wating for support multilines for label in chartist-js
// https://github.com/gionkunz/chartist-js/issues/25
$
(
'
#disk-chart svg
'
).
height
(
"
+=20
"
);
$
(
'
#disk-chart .ct-label.ct-horizontal
'
).
each
(
function
(
index
,
elem
)
{
var
size
=
document
.
createElementNS
(
"
http://www.w3.org/2000/svg
"
,
'
text
'
);
var
currentY
=
Number
(
elem
.
getAttribute
(
'
dy
'
));
size
.
setAttribute
(
'
dx
'
,
Number
(
elem
.
getAttribute
(
'
dx
'
)));
size
.
setAttribute
(
'
dy
'
,
currentY
+
15
);
size
.
setAttribute
(
'
class
'
,
'
ct-label ct-horizontal ct-size
'
);
size
.
textContent
=
total_sizes
[
elem
.
textContent
]
+
"
MB
"
;
elem
.
parentNode
.
appendChild
(
size
);
});
}
}
function
_exportTableToCSV
(
$table
,
filename
)
{
function
_exportTableToCSV
(
$table
,
filename
)
{
...
...
debomatic-webui/public/stylesheets/style.css
View file @
a623b876
...
@@ -273,6 +273,11 @@ footer .info {
...
@@ -273,6 +273,11 @@ footer .info {
font-size
:
0.85em
!important
;
font-size
:
0.85em
!important
;
}
}
#disk-chart
.size
{
color
:
#aaa
;
font-size
:
0.75em
;
}
#distributions-chart
.ct-chart
{
#distributions-chart
.ct-chart
{
height
:
200px
;
height
:
200px
;
margin-top
:
-20px
;
margin-top
:
-20px
;
...
...
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