Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
8c8f964b
Commit
8c8f964b
authored
May 16, 2019
by
Francesc Guasch
Browse files
Merge branch 'cjuan-develop' into develop
parents
8cc50fff
ac3aac38
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Front.pm
View file @
8c8f964b
...
...
@@ -506,9 +506,9 @@ sub list_vms($self, $type=undef) {
$row
->
{
bases
}
=
$self
->
_list_bases_vm
(
$row
->
{
id
});
$row
->
{
machines
}
=
$self
->
_list_machines_vm
(
$row
->
{
id
});
$row
->
{
type
}
=
$row
->
{
vm_type
};
$row
->
{
action_remove
}
=
'
disabled
'
if
length
defined
$row
->
{
machines
}[
0
]
>
0
;
$row
->
{
action_remove
}
=
'
disabled
'
if
length
defined
$row
->
{
machines
}[
0
];
$row
->
{
action_remove
}
=
'
disabled
'
if
$row
->
{
hostname
}
eq
'
localhost
';
$row
->
{
action_remove
}
=
'
disabled
'
if
length
defined
$row
->
{
bases
}[
0
]
>
0
;
$row
->
{
action_remove
}
=
'
disabled
'
if
length
defined
$row
->
{
bases
}[
0
];
$row
->
{
is_local
}
=
0
;
$row
->
{
is_local
}
=
1
if
$row
->
{
hostname
}
=~
/^(localhost|127)/
;
delete
$row
->
{
vm_type
};
...
...
templates/main/admin_nodes.html.ep
View file @
8c8f964b
...
...
@@ -65,6 +65,7 @@
<i
class=
"fa fa-window-close"
></i>
</button>
<button
type=
"button"
class=
"btn btn-danger btn-sm {{node.action_remove}}"
ng-disabled=
"node.action_remove == 'disabled'"
ng-click=
"node_remove(node.id)"
title=
"<%=l 'Remove' %>"
>
<i
class=
"fa fa-trash"
></i>
...
...
templates/main/list_bases_ng.html.ep
View file @
8c8f964b
...
...
@@ -12,7 +12,7 @@
%= include 'main/list_bases_ng_head'
<!--MACHINES SELECTION-->
<div
class=
"card-body"
>
<div
ng-repeat=
"machine in machines"
<div
ng-repeat=
"machine in machines
| orderBy: 'id_clone'
"
class=
"col-sm-4 d-inline-block mb-2"
ng-show=
"machine.is_public || (!machine.is_public && !only_public)"
>
<div
class=
"card card-success"
>
...
...
Write
Preview
Supports
Markdown
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