Bug #4414

Updated by Peter Amstutz almost 7 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:

<%= render partial: "projects_tree_menu", locals: {
:project_link_to => Proc.new do |pnode, &block|
data: { 'object-uuid' => pnode[:object].uuid,
'name' => 'name' },
: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 %>
<% } %>

Presumably the @:top_button@ option is broken.