1<div class="container"> 2 [% IF platforms.size %] 3 <div class="row"> 4 <div class="span6"> 5 <h3 class="nd_inventory-table-head">By Platform</h3> 6 <table class="table table-condensed table-hover"> 7 <thead> 8 <tr> 9 <th>Vendor</th> 10 <th>Model</th> 11 <th>Count</th> 12 </tr> 13 </thead> 14 <tbody> 15 [% FOREACH platform IN platforms %] 16 [% NEXT UNLESS platform.vendor OR platform.model %] 17 <tr> 18 <th> 19 [% IF platform.vendor %] 20 <a class="nd_linkcell" 21 href="[% search_device | none %]&q=[% platform.vendor | uri %]&vendor=[% platform.vendor | uri %]"> 22 [% platform.vendor | html_entity %]</a> 23 [% ELSE %]unknown[% END %] 24 </th> 25 <th> 26 [% IF platform.model %] 27 <a class="nd_linkcell" 28 href="[% search_device | none %]&q=[% platform.model | uri %]&model=[% platform.model | uri %]"> 29 [% platform.model | html_entity %]</a> 30 [% ELSE %]unknown[% END %] 31 </th> 32 <th>[% platform.count | html_entity %]</th> 33 </tr> 34 [% END %] 35 </tbody> 36 </table> 37 </div> 38 <div class="span6"> 39 <h3 class="nd_inventory-table-head">By Software Release</h3> 40 <table class="table table-condensed table-hover"> 41 <thead> 42 <tr> 43 <th>OS</th> 44 <th>Version</th> 45 <th>Count</th> 46 </tr> 47 </thead> 48 <tbody> 49 [% FOREACH release IN releases %] 50 [% NEXT UNLESS release.os OR release.os_ver %] 51 <tr> 52 <th> 53 [% IF release.os %] 54 <a class="nd_linkcell" 55 href="[% search_device | none %]&q=[% release.os | uri %]&os=[% release.os | uri %]"> 56 [% release.os | html_entity %]</a> 57 [% ELSE %]unknown[% END %] 58 </th> 59 <th> 60 [% IF release.os_ver %] 61 <a class="nd_linkcell" 62 href="[% search_device | none %]&q=[% release.os_ver | uri %]&os_ver=[% release.os_ver | uri %]"> 63 [% release.os_ver | html_entity %]</a> 64 [% ELSE %]unknown[% END %] 65 </th> 66 <th>[% release.count | html_entity %]</th> 67 </tr> 68 [% END %] 69 </tbody> 70 </table> 71 </div> 72 </div> 73 [% ELSE %] 74 <script type="text/javascript"> 75 window.location = '[% uri_for("/") %]'; 76 </script> 77 [% END %] 78</div> 79