Skip to content

Commit

Permalink
See More Results ONLY happens in desktop mode in the gallery view (#500)
Browse files Browse the repository at this point in the history
modified:   app/assets/stylesheets/ursus/_gallery.scss
modified:   app/views/catalog/_index_gallery.html.erb
  • Loading branch information
jendiamond authored and Darrow Cole committed Nov 6, 2019
1 parent 9c2920f commit 044a949
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion app/assets/stylesheets/ursus/_gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,18 @@
}

.extra-result-see-more {
a {
display: none;

@media (min-width: 960px) {
display: block;
}

a {
border: 1px solid #ddd;
padding: 20px;
font-size: 18px;
display: block;
margin-top: 60px;
}
}

2 changes: 1 addition & 1 deletion app/views/catalog/_index_gallery.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<% if document_counter + 1 == current_per_page and @response.total != current_per_page %>
<div class='document col-6 col-sm-6 col-md-6 col-lg-4 extra-result-see-more'>
<% current_next_page = @response.next_page.to_s %>
<%= link_to "See More >", url_for(request.parameters.merge(:only_path => false, page: current_next_page)) %>
<%= link_to "See More Results >", url_for(request.parameters.merge(:only_path => false, page: current_next_page)) %>
</div>
<% end %>

0 comments on commit 044a949

Please sign in to comment.