Project

General

Profile

Bug #4414

Updated by Peter Amstutz over 9 years ago

Currently no "Add new project" button is rendering on the "Projects" dropdown menu, even though the following code snippet from layouts/body.html.erb suggests that this is still supposed to happen: 

 <pre> 
             <%= render partial: "projects_tree_menu", locals: { 
                   :project_link_to => Proc.new do |pnode, &block| 
                     link_to(project_path(pnode[:object].uuid), 
                       data: { 'object-uuid' => pnode[:object].uuid, 
                               'name' => 'name' }, 
                       &block) 
                   end, 
                   :top_button => Proc.new do %> 
                     <% link_to projects_path, method: 'post', class: 'btn btn-xs btn-default pull-right' do %> 
                       <i class="fa fa-plus"></i> New project 
                     <% end %> 
                   <% end %> 
             <% } %> 
 </pre> 

 Presumably the @:top_button@ option is broken.

Back