- if current_version
  .pull-right
    .btn-group
      - if show_evaluate?
        .btn-group
          %button.btn.btn-default.dropdown-toggle{'data-toggle' => 'dropdown'}
            Evaluate
            %span.caret
          %ul.dropdown-menu{role: 'menu'}
            - if show_oops?
              %li= link_to 'design with OOPS', repository_ontology_ontology_version_oops_request_path(*resource_chain, current_version), method: 'post'
      - if can? :write, resource.parent
        = link_to 'Edit', [:edit, *resource_chain], class: 'btn btn-default'
      - if Settings.format_selection
        .btn-group
          %button.btn.btn-default.dropdown-toggle{'data-toggle' => 'dropdown'}
            Formats
            %span.caret
          %ul.dropdown-menu{role: 'menu'}
            - %w(xml json).each do |f|
              %li= link_to f.upcase, format: f

- if current_version
  .pull-right
    .btn-group
      - if show_evaluate?
        .btn-group
          %button.btn.btn-default.dropdown-toggle{'data-toggle' => 'dropdown'}
            Evaluate
            %span.caret
          %ul.dropdown-menu{role: 'menu'}
            - if show_oops?
              %li= link_to 'design with OOPS', repository_ontology_ontology_version_oops_request_path(*resource_chain, current_version), method: 'post'
      - if can? :write, resource.repository
        = link_to 'Edit', [:edit, *resource_chain], class: 'btn btn-default'
      - if Settings.format_selection
        .btn-group
          %button.btn.btn-default.dropdown-toggle{'data-toggle' => 'dropdown'}
            Formats
            %span.caret
          %ul.dropdown-menu{role: 'menu'}
            - %w(xml json).each do |f|
              %li= link_to f.upcase, format: f

Test ability on repository, not parent (distributed) ontology.
Test ability on repository, not parent (distributed) ontology.
