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
2a1e8e7a
Commit
2a1e8e7a
authored
Mar 26, 2012
by
Kostas Papadimitriou
Browse files
Proper gui/os image metadata handling
parent
7fe4aeba
Changes
3
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/ui/static/snf/js/glance_models.js
View file @
2a1e8e7a
...
...
@@ -29,6 +29,14 @@
display_size
:
function
()
{
return
this
.
get_readable_size
();
},
get_os
:
function
()
{
return
this
.
get_meta
(
'
os
'
);
},
get_gui
:
function
()
{
return
this
.
get_meta
(
'
gui
'
);
}
})
...
...
snf-cyclades-app/synnefo/ui/static/snf/js/models.js
View file @
2a1e8e7a
...
...
@@ -1234,6 +1234,10 @@
this
.
get_image
(
function
(){}).
get_os
()
||
"
okeanos
"
:
"
okeanos
"
);
},
get_gui
:
function
()
{
return
this
.
get_meta
(
'
GUI
'
);
},
// get public ip addresses
// TODO: public network is always the 0 index ???
get_addresses
:
function
(
net_id
)
{
...
...
snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_create_view.js
View file @
2a1e8e7a
...
...
@@ -1086,8 +1086,8 @@
set_detail
(
"
description
"
);
set_detail
(
"
name
"
);
set_detail
(
"
os
"
,
_
(
image
.
escape
(
"
OS
"
)).
capitalize
());
set_detail
(
"
gui
"
,
image
.
get
(
"
GUI
"
));
set_detail
(
"
os
"
,
_
(
image
.
get_os
(
)).
capitalize
());
set_detail
(
"
gui
"
,
image
.
get
_gui
(
));
set_detail
(
"
size
"
,
_
.
escape
(
image
.
get_readable_size
()));
set_detail
(
"
kernel
"
);
},
...
...
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