navigation_helper.rb revision 1cf649be9ed81eb8c96d13284ffa7992d816adce
# action link to new version actions << link_to
('New version', [:new, ontology, :ontology_version ]) if can? :edit, ontology counter_key = "#{row[0]}_count" row << ontology.send(counter_key) if ontology.respond_to?(counter_key) @page_title = ontology.to_s @page_title = "#{current_page.capitalize} · #{@page_title}" if current_page != pages[0][0] render :partial => '/ontologies/info', :locals => { current_page: current_page, def subnavigation(resource, pages, current_page, additional_actions = []) counter_key = "#{row[0]}_count" row << resource.send(counter_key) if resource.respond_to?(counter_key) @page_title = resource.to_s @page_title = "#{current_page.capitalize} · #{@page_title}" if current_page != pages[0][0] render :partial => '/shared/subnavigation', :locals => { current_page: current_page, additional_actions: additional_actions def team_nav(team, current_page) [:permissions, [team, :permissions]] pages << [:members, [team, :team_users]] if can? :edit, team subnavigation(team, pages, current_page)