% content_for :page_title do %> <%= controller.controller_name.humanize.capitalize %> <% end %> <% content_for :tab_line_buttons do %> <% if controller.model_class.creatable? %> <% if controller.model_class.name == 'User' %> <%= link_to setup_user_popup_path, {class: 'btn btn-sm btn-primary', :remote => true, 'data-toggle' => "modal", 'data-target' => '#user-setup-modal-window', return_to: request.url} do %> Add a new user <% end %>
<% elsif controller.controller_name == 'manage_account' %> <%# No add button is needed %> <% else %> <%= button_to({action: 'create'}, {class: 'btn btn-sm btn-primary'}) do %> Add a new <%= controller.controller_name.singularize.humanize.downcase %> <% end %> <% end %> <% end %> <% end %> <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.index_pane_list }%>