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
54e883e8
Commit
54e883e8
authored
Mar 10, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added current debomatic status to footer
parent
45373a00
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
4 deletions
+63
-4
debomatic-webui/public/javascripts/page_generic.js
debomatic-webui/public/javascripts/page_generic.js
+61
-3
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+1
-0
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+1
-1
No files found.
debomatic-webui/public/javascripts/page_generic.js
View file @
54e883e8
...
...
@@ -2,6 +2,49 @@ function Page_Generic()
{
var
socket
;
function
__get_status_html
(
status_package
)
{
classes
=
{}
classes
.
building
=
'
warning
'
classes
.
successed
=
'
success
'
classes
.
failed
=
'
danger
'
icons
=
{}
icons
.
building
=
'
refresh
'
icons
.
successed
=
''
icons
.
failed
=
''
s
=
status_package
li
=
$
(
'
<li></li>
'
)
li
.
attr
(
'
id
'
,
'
status-
'
+
s
.
distribution
+
"
-
"
+
s
.
package
)
button
=
$
(
'
<a></a>
'
)
button
.
addClass
(
'
btn btn-xs
'
)
button
.
addClass
(
s
.
status
)
button
.
attr
(
'
title
'
,
s
.
status
+
'
:
'
+
s
.
distribution
+
'
>
'
+
s
.
package
)
button
.
attr
(
'
href
'
,
config
.
paths
.
distribution
+
'
#
'
+
s
.
distribution
+
'
/
'
+
s
.
package
.
replace
(
'
_
'
,
'
/
'
)
+
'
/datestamp
'
)
button
.
html
(
s
.
package
.
split
(
'
_
'
)[
0
])
//button.html(button.html() + ' <small class="distribution">[' + s.distribution + ']</small>')
if
(
s
.
status
==
'
building
'
)
{
button_class
=
classes
.
building
icon
=
icons
.
building
}
else
if
(
s
.
status
==
'
build-failed
'
)
{
button_class
=
classes
.
failed
icon
=
icons
.
failed
}
else
{
button_class
=
classes
.
successed
icon
=
icons
.
successed
}
button
.
addClass
(
'
btn-
'
+
button_class
)
button
.
html
(
button
.
html
()
+
'
<span class="icon glyphicon glyphicon-
'
+
icon
+
'
"></span>
'
)
li
.
html
(
button
)
result
=
$
(
'
<div></div>
'
)
result
.
html
(
li
)
return
result
.
html
()
}
var
update
=
{
distributions
:
function
(
distributions
)
{
$
(
'
#distributions ul
'
).
html
(
''
);
...
...
@@ -14,6 +57,22 @@ function Page_Generic()
$
(
"
#distributions li[id='distribution-
"
+
data
.
distribution
.
name
+
"
']
"
).
addClass
(
'
active
'
)
}
}
},
status
:
function
(
new_package
)
{
}
}
var
status
=
{
set
:
function
(
data_status
)
{
$
(
"
#status ul
"
).
html
(
''
)
if
(
data_status
.
packages
.
length
>
0
)
{
$
(
'
#status .idle
'
).
hide
()
data_status
.
packages
.
forEach
(
function
(
p
){
$
(
"
#status ul
"
).
html
(
$
(
"
#status ul
"
).
html
()
+
"
"
+
__get_status_html
(
p
))
})
}
}
}
...
...
@@ -28,9 +87,8 @@ function Page_Generic()
socket
.
on
(
'
error
'
,
function
(
data
)
{
console
.
error
(
data
)
});
socket
.
on
(
'
status
'
,
function
(
data
)
{
console
.
log
(
'
status
'
)
console
.
log
(
data
)
socket
.
on
(
'
status
'
,
function
(
data_status
)
{
status
.
set
(
data_status
)
})
socket
.
on
(
config
.
events
.
broadcast
.
status_update
,
function
(
data
)
{
...
...
debomatic-webui/public/stylesheets/style.css
View file @
54e883e8
...
...
@@ -28,6 +28,7 @@ footer {
#status
span
{
font-weight
:
bold
;
font-size
:
small
;
}
#status
.packages
{
...
...
debomatic-webui/views/layout.ejs
View file @
54e883e8
...
...
@@ -34,7 +34,7 @@
<
%=
web
.
footer
%
>
</small>
<div
id=
"status"
class=
"clearfix"
>
<span>
status:
</span>
<span
class=
"idle text-muted"
>
Idle
</span>
<span
class=
"label label-default"
>
status:
</span>
<span
class=
"idle text-muted"
>
Idle
</span>
<ul
class=
"packages list-inline"
></ul>
</div>
</footer>
...
...
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