-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
3 additions
and
20 deletions.
There are no files selected for viewing
11 changes: 2 additions & 9 deletions
11
app/components/spotlight/solr_document_legacy_embed_component.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,14 +1,7 @@ | ||
<% if body.present? %> | ||
<%= body %> | ||
<% elsif partials? || embed? %> | ||
<% partial_content = capture do %> | ||
<% partials.each do |partial| %> | ||
<%= partial %> | ||
<% end %> | ||
<% end %> | ||
|
||
<%= partial_content if partial_content.present? %> | ||
<%= embed if embed? && partial_content.blank? %> | ||
<% elsif embed? %> | ||
<%= embed %> | ||
<% elsif thumbnail? %> | ||
<%= thumbnail %> | ||
<% end %> |
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
6 changes: 1 addition & 5 deletions
6
app/views/spotlight/sir_trevor/blocks/_embedded_document.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,8 +1,4 @@ | ||
<div class="box" data-id="<%= document.id %>"> | ||
<% view_config = blacklight_config.view_config(:embed) %> | ||
<%= render (view_config.document_component || Spotlight::SolrDocumentLegacyEmbedComponent).new((Blacklight.version > '8.0' ? :document : :presenter) => document_presenter(document, view_config: view_config), counter: nil, block: local_assigns[:block]) do |component| %> | ||
<% component.with_partial do %> | ||
<%= render_document_partials document, view_config.partials, component: component, document_counter: nil, view_config: view_config, block: local_assigns[:block], **(view_config.locals) %> | ||
<% end if view_config&.partials&.any? %> | ||
<% end %> | ||
<%= render (view_config.document_component || Spotlight::SolrDocumentLegacyEmbedComponent).new(:document => document_presenter(document, view_config: view_config), counter: nil, block: local_assigns[:block]) %> | ||
</div> |