Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
c46d04e1
Commit
c46d04e1
authored
Apr 18, 2011
by
Christodoulos Psaltis
Browse files
Minor template formatting changes
parent
d5719f9f
Changes
2
Show whitespace changes
Inline
Side-by-side
ui/templates/list.html
View file @
c46d04e1
...
@@ -211,7 +211,7 @@ function update_machines_view(data){
...
@@ -211,7 +211,7 @@ function update_machines_view(data){
// starting is not an api state, it means the server is stopped or on error
// starting is not an api state, it means the server is stopped or on error
tableData
[
current
][
0
]
=
"
<input class=
"
+
server
.
status
+
"
id=
"
+
server
.
id
+
"
type=checkbox>
"
;
tableData
[
current
][
0
]
=
"
<input class=
"
+
server
.
status
+
"
id=
"
+
server
.
id
+
"
type=checkbox>
"
;
imgSrc
=
"
static/wave.gif
"
;
imgSrc
=
"
static/wave.gif
"
;
imgStr
=
"
<img class=list-logo src=
"
+
imgSrc
+
"
title=
"
+
osTag
+
"
height=16 width=16
/
>
"
;
imgStr
=
"
<img class=list-logo src=
"
+
imgSrc
+
"
title=
"
+
osTag
+
"
height=16 width=16
></img
>
"
;
tableData
[
current
][
1
]
=
"
<span class=imagetag>
"
+
osTag
+
"
</span>
"
+
imgStr
;
tableData
[
current
][
1
]
=
"
<span class=imagetag>
"
+
osTag
+
"
</span>
"
+
imgStr
;
tableData
[
current
][
2
]
=
"
<a class=name><span class=name>
"
+
server
.
name
.
substring
(
0
,
60
)
+
"
</span></a>
"
;
tableData
[
current
][
2
]
=
"
<a class=name><span class=name>
"
+
server
.
name
.
substring
(
0
,
60
)
+
"
</span></a>
"
;
//tableData[current][4] = "group"; //TODO
//tableData[current][4] = "group"; //TODO
...
@@ -224,7 +224,7 @@ function update_machines_view(data){
...
@@ -224,7 +224,7 @@ function update_machines_view(data){
'
Shutting down
'
].
indexOf
(
server_row
.
find
(
'
span.status
'
).
text
())
>=
0
)
{
'
Shutting down
'
].
indexOf
(
server_row
.
find
(
'
span.status
'
).
text
())
>=
0
)
{
tableData
[
current
][
0
]
=
"
<input class=
"
+
server
.
status
+
"
id=
"
+
server
.
id
+
"
type=checkbox>
"
;
tableData
[
current
][
0
]
=
"
<input class=
"
+
server
.
status
+
"
id=
"
+
server
.
id
+
"
type=checkbox>
"
;
imgSrc
=
"
static/wave.gif
"
;
imgSrc
=
"
static/wave.gif
"
;
imgStr
=
"
<img class=list-logo src=
"
+
imgSrc
+
"
title=
"
+
osTag
+
"
height=16 width=16
/
>
"
;
imgStr
=
"
<img class=list-logo src=
"
+
imgSrc
+
"
title=
"
+
osTag
+
"
height=16 width=16
></img
>
"
;
tableData
[
current
][
1
]
=
"
<span class=imagetag>
"
+
osTag
+
"
</span>
"
+
imgStr
;
tableData
[
current
][
1
]
=
"
<span class=imagetag>
"
+
osTag
+
"
</span>
"
+
imgStr
;
tableData
[
current
][
2
]
=
"
<a class=name><span class=name>
"
+
server
.
name
.
substring
(
0
,
60
)
+
"
</span></a>
"
;
tableData
[
current
][
2
]
=
"
<a class=name><span class=name>
"
+
server
.
name
.
substring
(
0
,
60
)
+
"
</span></a>
"
;
//tableData[current][4] = "group"; //TODO
//tableData[current][4] = "group"; //TODO
...
@@ -238,7 +238,7 @@ function update_machines_view(data){
...
@@ -238,7 +238,7 @@ function update_machines_view(data){
[
STATUS_MESSAGES
[
'
BUILD
'
],
'
Rebooting
'
].
indexOf
(
server_row
.
find
(
'
span.status
'
).
text
())
>=
0
)
{
[
STATUS_MESSAGES
[
'
BUILD
'
],
'
Rebooting
'
].
indexOf
(
server_row
.
find
(
'
span.status
'
).
text
())
>=
0
)
{
tableData
[
current
][
0
]
=
"
<input class=
"
+
server
.
status
+
"
id=
"
+
server
.
id
+
"
type=checkbox>
"
;
tableData
[
current
][
0
]
=
"
<input class=
"
+
server
.
status
+
"
id=
"
+
server
.
id
+
"
type=checkbox>
"
;
imgSrc
=
"
static/wave.gif
"
;
imgSrc
=
"
static/wave.gif
"
;
imgStr
=
"
<img class=list-logo src=
"
+
imgSrc
+
"
title=
"
+
osTag
+
"
height=16 width=16
/
>
"
;
imgStr
=
"
<img class=list-logo src=
"
+
imgSrc
+
"
title=
"
+
osTag
+
"
height=16 width=16
></img
>
"
;
tableData
[
current
][
1
]
=
"
<span class=imagetag>
"
+
osTag
+
"
</span>
"
+
imgStr
;
tableData
[
current
][
1
]
=
"
<span class=imagetag>
"
+
osTag
+
"
</span>
"
+
imgStr
;
tableData
[
current
][
2
]
=
"
<a class=name><span class=name>
"
+
server
.
name
.
substring
(
0
,
60
)
+
"
</span></a>
"
;
tableData
[
current
][
2
]
=
"
<a class=name><span class=name>
"
+
server
.
name
.
substring
(
0
,
60
)
+
"
</span></a>
"
;
//tableData[current][4] = "group"; //TODO
//tableData[current][4] = "group"; //TODO
...
...
ui/templates/standard.html
View file @
c46d04e1
...
@@ -74,7 +74,10 @@ $("a.show-metadata").live('click', function() {
...
@@ -74,7 +74,10 @@ $("a.show-metadata").live('click', function() {
//initiate machine renaming
//initiate machine renaming
$
(
"
.rename, h5.editable span.name
"
).
live
(
'
click
'
,
function
()
{
$
(
"
.rename, h5.editable span.name
"
).
live
(
'
click
'
,
function
()
{
$
(
this
).
parent
().
find
(
'
.name
'
).
html
(
"
<input id=
\"
txtEdit
\"
type=
\"
text
\"
class=
\"
nametextbox
\"
value=
\"
"
+
$
(
this
).
parent
().
find
(
'
.name
'
).
text
()
+
"
\"
/ ><span class=
\"
oldValue
\"
style=
\"
display:none;
\"
>
"
+
$
(
this
).
parent
().
find
(
'
.name
'
).
text
()
+
"
</span>
"
);
$
(
this
).
parent
().
find
(
'
.name
'
).
html
(
"
<input id=
\"
txtEdit
\"
type=
\"
text
\"
class=
\"
nametextbox
\"
value=
\"
"
+
$
(
this
).
parent
().
find
(
'
.name
'
).
text
()
+
"
\"
/ ><span class=
\"
oldValue
\"
style=
\"
display:none;
\"
>
"
+
$
(
this
).
parent
().
find
(
'
.name
'
).
text
()
+
"
</span>
"
);
$
(
this
).
parent
().
find
(
'
.rename
'
).
hide
();
$
(
this
).
parent
().
find
(
'
.rename
'
).
hide
();
$
(
this
).
parent
().
find
(
"
.editbuttons
"
).
fadeIn
();
$
(
this
).
parent
().
find
(
"
.editbuttons
"
).
fadeIn
();
$
(
this
).
parent
().
removeClass
(
'
editable
'
);
$
(
this
).
parent
().
removeClass
(
'
editable
'
);
...
...
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