_menu.html.haml revision 3a976e419d5306aef3a2ae39e74f9729a729d3ca
561N/A%div.btn-group{'style' => 'display: inline-block'}
561N/A %a.btn.btn-mini.dropdown-toggle{'href' => '#', 'data-toggle' => 'dropdown'}
1610N/A %span.caret
561N/A %ul.dropdown-menu
561N/A - if can? :edit, resource
919N/A %li= link_to 'Edit', [:edit, resource]
919N/A %li= link_to 'Delete', resource, confirm: 'Do you really want to delete this ontology?', method: :delete
919N/A %li.divider
919N/A %li= link_to 'Comments', [resource, :comments]
919N/A %li= link_to 'Metadata', [resource, :metadata]
919N/A - if can? :permissions, resource
919N/A %li= link_to 'Permissions', [resource, :permissions]
919N/A - if can? :edit, resource
919N/A %li.divider
919N/A %li= link_to 'Upload new version from my computer', new_ontology_ontology_version_path(resource, :from => 'http-client')
919N/A %li= link_to 'Import new version from other website', new_ontology_ontology_version_path(resource, :from => 'http-server')
919N/A %li= link_to 'Browse Versions', [resource, :ontology_versions]
919N/A