-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1611 from samvera/fix_feature_tests
Fix failing feature and veiw tests caused by capybara-maleficent update to 2.0
- Loading branch information
Showing
10 changed files
with
194 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 15 additions & 28 deletions
43
app/views/hyrax/dashboard/collections/_show_actions.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,15 @@ | ||
<h2 class="sr-only"><%= t('hyrax.collection.actions.header') %></h2> | ||
<div class="actions-controls-collections"> | ||
<% if can? :edit, presenter.solr_document %> | ||
<%= link_to t('hyrax.collection.actions.edit.label'), | ||
edit_dashboard_collection_path(presenter), | ||
title: t('hyrax.collection.actions.edit.desc'), | ||
class: 'btn btn-default' %> | ||
<%= link_to t('hyrax.collection.actions.add_works.label'), | ||
hyrax.my_works_path(add_works_to_collection: presenter.id), | ||
title: t('hyrax.collection.actions.add_works.desc'), | ||
class: 'btn btn-default' %> | ||
<% if presenter.collection_type_is_nestable? %> | ||
<%= link_to t('hyrax.collection.actions.nest_collections.label'), | ||
hyrax.dashboard_new_nest_collection_within_path(child_id: presenter.id), | ||
title: t('hyrax.collection.actions.nest_collections.desc'), | ||
class: 'btn btn-default' %> | ||
<% end %> | ||
<%end %> | ||
|
||
<% if can? :destroy, presenter.solr_document %> | ||
<%= link_to t('hyrax.collection.actions.delete.label'), | ||
collection_path(presenter), | ||
title: t('hyrax.collection.actions.delete.desc'), | ||
class: 'btn btn-danger', | ||
data: { confirm: t('hyrax.collection.actions.delete.confirmation'), | ||
method: :delete } %> | ||
<% end %> | ||
</div> | ||
<span class="sr-only h2"><%= t('hyrax.collection.actions.header') %></span> | ||
<% if can? :destroy, presenter.solr_document %> | ||
<%= link_to t('hyrax.collection.actions.delete.label'), | ||
hyrax.dashboard_collection_path(presenter), | ||
title: t('hyrax.collection.actions.delete.desc'), | ||
class: 'btn btn-danger pull-right', | ||
data: { confirm: t('hyrax.collection.actions.delete.confirmation'), | ||
method: :delete } %> | ||
<% end %> | ||
<% if can? :edit, presenter.solr_document %> | ||
<%= link_to t('hyrax.collection.actions.edit.label'), | ||
hyrax.edit_dashboard_collection_path(presenter), | ||
title: t('hyrax.collection.actions.edit.desc'), | ||
class: 'btn btn-default pull-right' %> | ||
<% end %> |
15 changes: 15 additions & 0 deletions
15
app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<h2 class="sr-only"><%= t('hyrax.collection.actions.header') %></h2> | ||
<div class="actions-controls-collections"> | ||
<% if can? :edit, presenter.solr_document # TODO: Shouldn't this be :deposit -- dependency on participants %> | ||
<%= link_to t('hyrax.collection.actions.add_works.label'), | ||
hyrax.my_works_path(add_works_to_collection: presenter.id), | ||
title: t('hyrax.collection.actions.add_works.desc'), | ||
class: 'btn btn-default pull-right' %> | ||
<% if presenter.collection_type_is_nestable? %> | ||
<%= link_to t('hyrax.collection.actions.nest_collections.label'), | ||
hyrax.dashboard_new_nest_collection_within_path(child_id: presenter.id), | ||
title: t('hyrax.collection.actions.nest_collections.desc'), | ||
class: 'btn btn-default' %> | ||
<% end %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.