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
d96960e1
Commit
d96960e1
authored
Feb 27, 2015
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'github/sbuild' into sbuild
parents
b7ae05dc
1d347335
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
2 deletions
+28
-2
debomatic-modules/JSONLogger.py
debomatic-modules/JSONLogger.py
+5
-1
debomatic-webui/lib/client.coffee
debomatic-webui/lib/client.coffee
+1
-1
debomatic-webui/public/images/package.png
debomatic-webui/public/images/package.png
+0
-0
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+4
-0
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+18
-0
No files found.
debomatic-modules/JSONLogger.py
View file @
d96960e1
...
...
@@ -29,6 +29,7 @@ from time import time
from
json
import
dumps
as
toJSON
from
json
import
load
as
fileToJSON
from
collections
import
defaultdict
from
hashlib
import
md5
class
DebomaticModule_JSONLoggerStart
:
...
...
@@ -89,7 +90,10 @@ class DebomaticModule_JSONLogger:
status
=
{}
status
[
'package'
]
=
args
.
package
status
[
'distribution'
]
=
args
.
distribution
status
[
'uploader'
]
=
args
.
uploader
status
[
'uploader'
]
=
""
if
args
.
uploader
!=
""
:
email
=
args
.
uploader
.
lower
().
encode
(
'utf-8'
)
status
[
'gravatar'
]
=
md5
(
email
).
hexdigest
()
return
status
def
_append_json_logfile
(
self
,
args
,
status
):
...
...
debomatic-webui/lib/client.coffee
View file @
d96960e1
...
...
@@ -74,7 +74,7 @@ class Client
pack
.
orig_name
=
p
read_package_status
{
distribution
:
data
.
distribution
,
package
:
pack
},
(
content
)
=>
for
attr
of
content
if
attr
not
in
[
'distribution'
,
'package'
,
'status'
,
'success'
]
if
attr
not
in
[
'distribution'
,
'package'
,
'status'
,
'success'
,
'gravatar'
]
delete
content
[
attr
]
@
socket
.
emit
e
.
distribution_packages_status
,
content
data
.
distribution
.
packages
.
push
pack
...
...
debomatic-webui/public/images/package.png
0 → 100644
View file @
d96960e1
661 Bytes
debomatic-webui/public/javascripts/page_distribution.js
View file @
d96960e1
...
...
@@ -225,6 +225,10 @@ function Page_Distrubion(socket) {
var
p_html
=
$
(
'
#packages li[id="package-
'
+
status_data
.
package
+
'
"] a
'
);
p_html
.
find
(
'
span.icon
'
).
remove
();
p_html
.
append
(
Utils
.
get_status_icon_html
(
status_data
));
if
(
status_data
.
gravatar
)
{
var
image
=
"
http://gravatar.com/avatar/
"
+
status_data
.
gravatar
+
"
?d=mm&s=30
"
;
p_html
.
css
(
"
background-image
"
,
"
url(
"
+
image
+
"
)
"
);
}
if
(
Utils
.
check_view_package
(
view
)
&&
view
.
package
.
orig_name
==
status_data
.
package
&&
view
.
distribution
.
name
==
status_data
.
distribution
)
{
// in case user is watching this package, update also view.package
view
.
package
=
Utils
.
clone
(
view
.
packages
[
status_data
.
package
]);
...
...
debomatic-webui/public/stylesheets/style.css
View file @
d96960e1
...
...
@@ -143,6 +143,24 @@ footer .info {
margin-top
:
-3px
;
}
#packages
li
a
{
background-image
:
url("/images/package.png")
;
padding-left
:
40px
;
background-repeat
:
no-repeat
;
background-position
:
left
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.18
);
}
#packages
li
:not
(
.active
)
a
{
box-shadow
:
0
0px
2px
rgba
(
0
,
0
,
0
,
0.3
)
inset
;
background-color
:
rgba
(
0
,
0
,
0
,
0.05
);
border-color
:
rgba
(
255
,
255
,
255
,
0.76
);
}
#packages
li
:not
(
.active
)
a
:hover
{
background-color
:
rgba
(
0
,
0
,
0
,
0.06
);
}
#files
.size
{
margin
:
0
8px
0
0
;
font-size
:
70%
;
...
...
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