Skip to content

Commit

Permalink
🐛 fix for resource_path error
Browse files Browse the repository at this point in the history
In staging clicking on resources_path would result in an error. This commit fixes that.

Issue:
- https://github.com/scientist-softserv/adventist-dl/issues/556
  • Loading branch information
ShanaLMoore committed Oct 3, 2023
1 parent 902dbe7 commit fae3cc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/views/_user_util_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
<%= link_to t(:'hyrax.controls.home'), hyrax.root_path, aria: current_page?(hyrax.root_path) ? {current: 'page'} : nil %></li>
<li <%= 'class=active' if current_page?(hyrax.about_path) %>>
<%= link_to t(:'hyrax.controls.about'), hyrax.about_path, aria: current_page?(hyrax.about_path) ? {current: 'page'} : nil %></li>
<% if defined?(resources_path) %> <%#= TODO remove when path fix is merged %>
<li <%= 'class=active' if current_page?(main_app.resources_path) %>>
<%= link_to t(:'hyrax.controls.resources'), main_app.resources_path, aria: current_page?(main_app.resources_path) ? {current: 'page'} : nil %></li>
<% end %>
<li <%= 'class=active' if current_page?(hyku_knapsack.resources_path) %>>
<%= link_to t(:'hyrax.controls.resources'), hyku_knapsack.resources_path, aria: current_page?(hyku_knapsack.resources_path) ? {current: 'page'} : nil %></li>
<li <%= 'class=active' if current_page?(hyrax.contact_path) %>>
<%= link_to t(:'hyrax.controls.contact'), hyrax.contact_path, aria: current_page?(hyrax.contact_path) ? {current: 'page'} : nil %></li>
<% if user_signed_in? %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>
<div class="col-xs-12 col-sm-6">
<div class="footer-logo">
<a href="<%= root_path %>">
<a href="<%= hyrax.root_path %>">
<%= image_tag "ADL-footer-logo.png", :class => "logo-img" %>
</a>
</div>
Expand Down

0 comments on commit fae3cc2

Please sign in to comment.