_menu.html.haml revision 41292ec9bfaafec2c0592a3ac0092e4c412ee7e8
- show_oops = resource.oops_supported? && !resource.versions.current.try(:request)
- if show_oops
- show_evaluate = show_oops #|| show_foo
- unless resource.versions.current.nil?
.pull-right
.btn-group
- if show_evaluate
.btn-group
%button.btn.btn-default.dropdown-toggle{'data-toggle' => 'dropdown'}
Evaluate
%ul.dropdown-menu{role: 'menu'}
- if show_oops
%li= link_to 'design with OOPS', repository_ontology_ontology_version_oops_request_path(*resource_chain, version), method: 'post'
- if can? :edit, resource
= link_to 'Edit', [:edit, *resource_chain], class: 'btn btn-default'
.btn-group
%button.btn.btn-default.dropdown-toggle{'data-toggle' => 'dropdown'}
Formats
%ul.dropdown-menu{role: 'menu'}
- %w(xml json).each do |f|
%li= link_to f.upcase, format: f