Skip function list render if no functions defined

If a module does not define any functions, skip rendering the "Functions"
section in the "Puppet Plugins List".
This commit is contained in:
Charlie Sharpsteen 2014-06-12 22:48:56 -07:00
parent 1b8cc98118
commit 71427fad17
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
<% unless P(:root, 'ParserFunctions').is_a?(CodeObjects::Proxy) %>
<li>
<a class='toggle'></a>
<%= link_object(P(:root, 'ParserFunctions'), 'Parser Functions', nil, false) %>
@ -6,3 +7,4 @@
<ul>
<%= namespace_list(:root => P(:root,'ParserFunctions'), :namespace_types => [:puppetnamespace, :method]) %>
</ul>
<% end %>