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
ddb1242c
Commit
ddb1242c
authored
May 03, 2017
by
fv3rdugo
Browse files
Fix list networks
parent
b65cd0f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
public/js/admin.js
View file @
ddb1242c
...
...
@@ -200,9 +200,6 @@ function networksPageC($scope, $http, $interval, request) {
$scope
.
list_networks
=
response
.
data
;
});
}
$scope
.
action
=
function
(
target
,
action
,
machineId
){
$http
.
get
(
'
/
'
+
target
+
'
/
'
+
action
+
'
/
'
+
machineId
+
'
.json
'
);
};
//On load code
$scope
.
getNetworks
();
$scope
.
updatePromise
=
$interval
(
$scope
.
getNetworks
,
3000
);
...
...
rvd_front.pl
View file @
ddb1242c
...
...
@@ -189,8 +189,9 @@ any '/admin' => sub {
};
any
'
/admin/networks
'
=>
sub
{
my
$c
=
shift
;
$c
->
render
(
template
=>
'
/main/networks
');
my
$c
=
shift
;
push
@
{
$c
->
stash
->
{
js
}},
'
/js/admin.js
';
$c
->
render
(
template
=>
'
/main/networks
');
};
any
'
/admin/new_networks
'
=>
sub
{
...
...
@@ -211,6 +212,7 @@ sub networks {
all_domains
=>
$c
->
param
('
all_domains
'),
no_domains
=>
$c
->
param
('
no_domains
')
)
}
push
@
{
$c
->
stash
->
{
js
}},
'
/js/admin.js
';
$c
->
render
(
template
=>
'
main/new_networks
');
}
...
...
templates/main/networks.html.ep
View file @
ddb1242c
...
...
@@ -33,14 +33,13 @@
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"networks in list_networks"
>
<td>
{{networks.name}}
</td>
<td>
{{networks.address}}
</td>
<td>
{{networks.description}}
</td>
</a>
</td>
</tr>
<tr
ng-repeat=
"network in list_networks"
>
<td>
{{ network.name }}
</td>
<td>
{{ network.address }}
</td>
<td>
{{ network.description }}
</td>
<td>
{{ network.all_domains }}
</td>
<td>
{{ network.no_domains }}
</td>
</tr>
</tbody>
</table>
</div>
...
...
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