use the new duplex mismatch query in a template

This commit is contained in:
Oliver Gorwits
2013-03-11 23:10:38 +00:00
parent 786977354b
commit 6d9170598c
2 changed files with 33 additions and 4 deletions

View File

@@ -13,13 +13,12 @@ register_report({
});
ajax '/ajax/content/report/duplexmismatch' => sub {
# my $q = param('q');
# my $device = schema('netdisco')->resultset('Device')
# ->with_times()->search_for_device($q) or return;
my $set = schema('netdisco')->resultset('Virtual::DuplexMismatch');
return unless $set->count;
content_type('text/html');
template 'ajax/report/duplexmismatch.tt', {
# d => $device,
results => $set,
}, { layout => undef };
};