initial location filtering

This commit is contained in:
Oliver Gorwits
2018-03-10 14:27:04 +00:00
parent ffc3f21533
commit 22e6e7a2d8
3 changed files with 31 additions and 5 deletions

View File

@@ -82,7 +82,8 @@ get '/device' => require_login sub {
params->{'tab'} ||= 'details';
template 'device', {
display_name => ($others ? $first->ip : ($first->dns || $first->ip)),
hgroup_list => setting('host_group_displaynames'),
location_list => [ schema('netdisco')->resultset('Device')->get_distinct_col('location') ],
hgroup_list => setting('host_group_displaynames'),
device => params->{'tab'},
};
};