1 <% unless controller.folder_id.blank? or not @logged_in_user.can_create(controller.folder_id) %>
\r
2 <%= link_to 'Create folder', { :controller => 'folder', :action => 'new', :id => controller.folder_id } %><br />
\r
3 <%= link_to 'Upload file', { :controller => 'file', :action => 'upload', :id => controller.folder_id } %>
\r