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:
		
							parent
							
								
									1b8cc98118
								
							
						
					
					
						commit
						71427fad17
					
				| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					<% unless P(:root, 'ParserFunctions').is_a?(CodeObjects::Proxy) %>
 | 
				
			||||||
<li>
 | 
					<li>
 | 
				
			||||||
  <a class='toggle'></a>
 | 
					  <a class='toggle'></a>
 | 
				
			||||||
  <%= link_object(P(:root, 'ParserFunctions'), 'Parser Functions', nil, false) %>
 | 
					  <%= link_object(P(:root, 'ParserFunctions'), 'Parser Functions', nil, false) %>
 | 
				
			||||||
| 
						 | 
					@ -6,3 +7,4 @@
 | 
				
			||||||
<ul>
 | 
					<ul>
 | 
				
			||||||
  <%= namespace_list(:root => P(:root,'ParserFunctions'), :namespace_types => [:puppetnamespace, :method]) %>
 | 
					  <%= namespace_list(:root => P(:root,'ParserFunctions'), :namespace_types => [:puppetnamespace, :method]) %>
 | 
				
			||||||
</ul>
 | 
					</ul>
 | 
				
			||||||
 | 
					<% end %>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue