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
6d3053b5
Commit
6d3053b5
authored
Mar 10, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved status icons and status classes to config in layout
parent
54e883e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
17 deletions
+20
-17
debomatic-webui/public/javascripts/page_generic.js
debomatic-webui/public/javascripts/page_generic.js
+8
-17
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+12
-0
No files found.
debomatic-webui/public/javascripts/page_generic.js
View file @
6d3053b5
...
...
@@ -4,16 +4,8 @@ function Page_Generic()
function
__get_status_html
(
status_package
)
{
classes
=
{}
classes
.
building
=
'
warning
'
classes
.
successed
=
'
success
'
classes
.
failed
=
'
danger
'
icons
=
{}
icons
.
building
=
'
refresh
'
icons
.
successed
=
''
icons
.
failed
=
''
c
=
config
.
status
.
classes
i
=
config
.
status
.
icons
s
=
status_package
li
=
$
(
'
<li></li>
'
)
...
...
@@ -24,18 +16,17 @@ function Page_Generic()
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
=
c
lasses
.
building
icon
=
i
cons
.
building
button_class
=
c
.
building
icon
=
i
.
building
}
else
if
(
s
.
status
==
'
build-failed
'
)
{
button_class
=
c
lasses
.
failed
icon
=
i
cons
.
failed
button_class
=
c
.
failed
icon
=
i
.
failed
}
else
{
button_class
=
c
lasses
.
successed
icon
=
i
cons
.
successed
button_class
=
c
.
successed
icon
=
i
.
successed
}
button
.
addClass
(
'
btn-
'
+
button_class
)
button
.
html
(
button
.
html
()
+
'
<span class="icon glyphicon glyphicon-
'
+
icon
+
'
"></span>
'
)
...
...
debomatic-webui/views/layout.ejs
View file @
6d3053b5
...
...
@@ -45,6 +45,18 @@
<script>
var
config
=
<%-
JSON
.
stringify
(
web
)
%>
config
.
status
=
{}
config
.
status
.
classes
=
{}
config
.
status
.
classes
.
building
=
'
info
'
config
.
status
.
classes
.
successed
=
'
success
'
config
.
status
.
classes
.
failed
=
'
danger
'
config
.
status
.
icons
=
{}
config
.
status
.
icons
.
building
=
'
refresh
'
config
.
status
.
icons
.
successed
=
'
ok
'
config
.
status
.
icons
.
failed
=
'
error
'
</script>
<script
src=
'/javascripts/utils.js'
></script>
...
...
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