<% @admin_tools = capture do %> <%= out = String.new if hasPriv?( ApplicationController::PRIV_MANAGECONTENT ) out << writeNavNode(link_to( 'New Article', :controller => '/admin/articles', :action => 'new', :id => @folder.id )) end if hasPriv?( ApplicationController::PRIV_MANAGESTRUCTURE) out << writeNavNode(link_to( 'New Folder', :controller => '/admin/structure', :action => 'new', :id => @folder.id )) out << writeNavNode(link_to( 'Edit Folder', :controller => '/admin/structure', :action => 'edit', :id => @folder.id )) end out end %>