Skip to content

Commit

Permalink
Merge pull request #3298 from projectblacklight/backport-3294-to-4x
Browse files Browse the repository at this point in the history
Backport namespace reference to exhibit_alt_text_path
  • Loading branch information
dnoneill authored Nov 26, 2024
2 parents ece2a7d + caffd29 commit 081e4cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/spotlight/shared/_exhibit_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<% if current_exhibit.analytics_provider&.enabled? %>
<%= nav_link t(:'spotlight.curation.sidebar.analytics'), spotlight.analytics_exhibit_dashboard_path(current_exhibit) %>
<% end %>
<%= nav_link t(:'spotlight.accessibility.header'), exhibit_alt_text_path(@exhibit) %>
<%= nav_link t(:'spotlight.accessibility.header'), spotlight.exhibit_alt_text_path(current_exhibit) %>
</ul>
<%= render 'spotlight/shared/configuration_sidebar' if can? :update, current_exhibit %>
<%= render 'spotlight/shared/curation_sidebar' %>
3 changes: 1 addition & 2 deletions spec/views/spotlight/dashboards/analytics.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
allow(current_exhibit).to receive(:page_analytics).and_return(data)
allow(current_exhibit).to receive(:analytics).and_return(data)
allow(current_exhibit).to receive(:analytics_provider).and_return(double(Spotlight::Analytics::Ga, enabled?: enabled))
allow(view).to receive_messages(current_exhibit:, exhibit_root_path: '/some/path', analytics_exhibit_dashboard_path: '/some/path',
exhibit_alt_text_path: '/alt-text')
allow(view).to receive_messages(current_exhibit:, exhibit_root_path: '/some/path', analytics_exhibit_dashboard_path: '/some/path')
end

context 'without a configured analytics integration' do
Expand Down

0 comments on commit 081e4cc

Please sign in to comment.