Skip to content

Commit

Permalink
Include the bare partial in document partial lookups and use the bare…
Browse files Browse the repository at this point in the history
… name by

default
  • Loading branch information
cbeer committed Sep 15, 2016
1 parent d986ca2 commit 9dd5f3f
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/helpers/blacklight/render_partials_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def render_document_index documents = nil, locals = {}
##
# Render the document index for a grouped response
def render_grouped_document_index
render 'catalog/group_default'
render 'catalog/group'
end

##
Expand Down Expand Up @@ -163,6 +163,7 @@ def document_partial_path_templates
"%{action_name}_%{index_view_type}_default",
"%{action_name}_%{format}",
"%{action_name}_default",
"%{action_name}",
"catalog/%{action_name}_%{format}",
"catalog/_%{action_name}_partials/%{format}",
"catalog/_%{action_name}_partials/default"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# spec for default partial to display solr document fields in catalog INDEX view

describe "/catalog/_index_default.erb" do
describe "/catalog/_index" do
include BlacklightHelper
include CatalogHelper

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# spec for default partial to display solr document fields in catalog show view

describe "/catalog/_show_default.html.erb" do
describe "/catalog/_show" do

include BlacklightHelper
include CatalogHelper
Expand Down

0 comments on commit 9dd5f3f

Please sign in to comment.