Skip to content

Commit

Permalink
use correct browse-collections link (#325)
Browse files Browse the repository at this point in the history
* point to browse_catalog_path in featured collections link
  • Loading branch information
rococodogs authored Nov 6, 2019
1 parent 92d1349 commit 53dc67f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/spot/homepage/_featured_collections.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if presenter.featured_collections.present? %>
<div id="featured-collections" class="container-fluid">
<h2><%= t('.title') %></h2>
<p class="lead"><%= t('.browse_html').html_safe %></p>
<h2><%= t(".title_#{presenter.featured_collections.size > 1 ? 'plural' : 'singular'}") %></h2>
<p class="lead"><%= t('.browse_html', url: browse_collections_path).html_safe %></p>
<% presenter.featured_collections.each do |collection| %>
<%= render 'featured_collection_item', collection: collection %>
<% end %>
Expand Down
5 changes: 3 additions & 2 deletions config/locales/spot.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ en:
page_title: Welcome to the %{name}

featured_collections:
title: Featured Collections
browse_html: '<a href="https://dss.lafayette.edu/collections" target="_blank">Click here</a> to browse all collections'
title_singular: Featured Collection
title_plural: Featured Collections
browse_html: '<a href="%{url}">Click here</a> to browse all collections'
collection:
view: View Collection
learn_more: Learn More
Expand Down

0 comments on commit 53dc67f

Please sign in to comment.