Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add extension behavior for FileSet show view partials #6076

Merged
merged 2 commits into from
Jun 15, 2023

Conversation

no-reply
Copy link
Contributor

if a user wants to extend the FileSet show view to, e.g. show file specific
details or relationships to other objects, they should be able to inject that
behavior via the presenter

extensions were vaguely waved at around Sufia 7:
samvera-deprecated/sufia#1481

we have some in mind in Surfliner:
https://gitlab.com/surfliner/surfliner/-/issues/1282

Changes proposed in this pull request:

  • adds FileSetPresenter#show_partials to list partial paths to render in the guts of the FileSet show page.

Guidance for testing, such as acceptance criteria or new user interface behaviors:

  • no functional changes.

@samvera/hyrax-code-reviewers

Comment on lines +14 to +16
<% @presenter.show_partials.each do |partial_path| %>
<%= render partial_path %>
<% end %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<% @presenter.show_partials.each do |partial_path| %>
<%= render partial_path %>
<% end %>
<% @presenter.show_partials.each do |partial_path| %>
<%= render partial_path %>
<% end %>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alishaevn i don't think we want to nest indentation here? that will result in the partial HTML content being indented a level too far (since the #each block won't appear in the rendered HTML).

tamsin johnson added 2 commits June 14, 2023 16:46
if a user wants to extend the FileSet show view to, e.g. show file specific
details or relationships to other objects, they should be able to inject that
behavior here.

extensions were vaguely waved at around Sufia 7:
samvera-deprecated/sufia#1481

we have some in mind in Surfliner:
https://gitlab.com/surfliner/surfliner/-/issues/1282
@dlpierce dlpierce merged commit 8aa6379 into main Jun 15, 2023
@dlpierce dlpierce deleted the file_set-show-descriptions branch June 15, 2023 19:45
@dlpierce dlpierce added the notes-minor Release Notes: Non-breaking features label Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-minor Release Notes: Non-breaking features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants