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
2bf064e2
Commit
2bf064e2
authored
Mar 12, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set package status
parent
449f9e8a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
debomatic-webui/public/javascripts/main.js
debomatic-webui/public/javascripts/main.js
+1
-5
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+13
-0
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+5
-0
No files found.
debomatic-webui/public/javascripts/main.js
View file @
2bf064e2
...
...
@@ -4,8 +4,4 @@ new Page_Generic().init(socket)
if
(
window
.
location
.
pathname
==
config
.
paths
.
distribution
)
{
new
Page_Distrubion
(
socket
).
start
()
}
socket
.
on
(
config
.
events
.
client
.
distribution_packages
.
status
,
function
(
data
){
console
.
log
(
data
)
})
\ No newline at end of file
}
\ No newline at end of file
debomatic-webui/public/javascripts/page_distribution.js
View file @
2bf064e2
...
...
@@ -65,6 +65,11 @@ function Page_Distrubion(socket)
},
unselect
:
function
()
{
$
(
'
#packages li
'
).
removeClass
(
'
active
'
)
},
set_status
:
function
(
status_data
)
{
var
p_html
=
$
(
"
#packages li[id='package-
"
+
status_data
.
package
+
"
'] a
"
)
p_html
.
find
(
'
span.icon
'
).
remove
()
p_html
.
html
(
p_html
.
html
()
+
'
'
+
Utils
.
get_status_icon_html
(
status_data
))
}
}
...
...
@@ -272,6 +277,14 @@ function Page_Distrubion(socket)
packages
.
set
(
socket_data
)
})
socket
.
on
(
events
.
distribution_packages
.
status
,
function
(
socket_data
){
packages
.
set_status
(
socket_data
)
})
socket
.
on
(
config
.
events
.
broadcast
.
status_update
,
function
(
socket_data
){
packages
.
set_status
(
socket_data
)
})
socket
.
on
(
events
.
package_files_list
.
set
,
function
(
socket_data
){
files
.
set
(
socket_data
)
})
...
...
debomatic-webui/public/stylesheets/style.css
View file @
2bf064e2
...
...
@@ -29,6 +29,11 @@ footer {
border-top
:
1px
solid
#f0f0f0
;
}
#packages
li
.icon
{
float
:
right
;
margin-top
:
-3px
;
}
#status
span
{
font-weight
:
bold
;
font-size
:
small
;
...
...
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