diff --git a/Netdisco/Changes b/Netdisco/Changes index 1fd39636..d0600dd7 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -2,6 +2,7 @@ [BUG FIXES] + * [ND1#117] unknown devices missing from inventory * [#118] Fix table rendering on port search tab when VLAN is null 2.028000 - 2014-07-01 diff --git a/Netdisco/share/views/inventory.tt b/Netdisco/share/views/inventory.tt index 1b1dc13e..323f917e 100644 --- a/Netdisco/share/views/inventory.tt +++ b/Netdisco/share/views/inventory.tt @@ -13,17 +13,21 @@ [% FOREACH platform IN models.all %] - [% NEXT UNLESS platform.vendor AND platform.model %] + [% NEXT UNLESS platform.vendor OR platform.model %] + [% IF platform.vendor %] [% platform.vendor | html_entity %] + [% ELSE %]unknown[% END %] + [% IF platform.model %] [% platform.model | html_entity %] + [% ELSE %]unknown[% END %] [% platform.get_column('count') | html_entity %] @@ -43,13 +47,15 @@ [% FOREACH release IN releases.all %] - [% NEXT UNLESS (release.os AND release.os_ver) %] + [% NEXT UNLESS (release.os OR release.os_ver) %] - [% release.os | html_entity %] + [% release.os || 'unknown' | html_entity %] + [% IF release.os_ver %] [% release.os_ver | html_entity %] + [% ELSE %]unknown[% END %] [% release.get_column('count') | html_entity %]