Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
82276bd9
Commit
82276bd9
authored
Mar 25, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use fontawesome to display station status
parent
389d733e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
dream/platform/static/css/demo-new.css
dream/platform/static/css/demo-new.css
+3
-3
dream/platform/static/src/dream_launcher.js
dream/platform/static/src/dream_launcher.js
+23
-3
No files found.
dream/platform/static/css/demo-new.css
View file @
82276bd9
...
...
@@ -337,7 +337,7 @@ border: 1px solid black;
color
:
black
;
font-family
:
serif
;
font-style
:
italic
;
padding-top
:
0.9
em
;
padding-top
:
1.4
em
;
font-size
:
0.9em
;
cursor
:
move
;
font-size
:
11px
;
...
...
@@ -384,8 +384,8 @@ border: 1px solid black;
.status
{
position
:
absolute
;
bottom
:
0px
;
righ
t
:
5px
;
top
:
0px
;
lef
t
:
5px
;
}
._jsPlumb_source_hover
,
._jsPlumb_target_hover
,
.dragHover
{
...
...
dream/platform/static/src/dream_launcher.js
View file @
82276bd9
...
...
@@ -359,9 +359,29 @@
}
function
changeStatus
(
message
,
queue
)
{
var
obj
=
dream_instance
.
getElementId
(
message
.
object
);
dream_instance
.
updateElementData
(
message
.
object
,
{
status
:
message
.
status
})
var
element_id
=
dream_instance
.
getElementId
(
message
.
object
);
var
statusdiv
=
$
(
"
#
"
+
element_id
).
find
(
"
.status
"
);
if
(
!
statusdiv
.
length
)
{
statusdiv
=
$
(
"
<div>
"
).
addClass
(
"
status
"
).
appendTo
(
$
(
"
#
"
+
element_id
));
}
if
(
message
.
status
==
'
setup
'
)
{
statusdiv
.
html
(
"
<i class='fa fa-wrench'></i> setup
"
)
}
if
(
message
.
status
==
'
loading
'
)
{
statusdiv
.
html
(
"
<i class='fa fa-upload'></i> loading
"
)
}
if
(
message
.
status
==
'
working
'
)
{
statusdiv
.
html
(
"
<i class='fa fa-gear fa-spin'></i> working
"
)
}
if
(
message
.
status
==
'
waiting
'
)
{
statusdiv
.
html
(
"
<i class='fa fa-coffee'></i> waiting
"
)
}
if
(
message
.
status
==
'
blocked
'
)
{
statusdiv
.
html
(
"
<i class='fa fa-exclamation'></i> blocked
"
)
}
if
(
message
.
status
==
'
failure
'
)
{
statusdiv
.
html
(
"
<i class='fa fa-fire'></i> failure
"
)
}
$
(
"
#now
"
).
text
(
message
.
time
.
toFixed
(
2
));
$
(
queue
).
dequeue
()
}
...
...
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