Skip to content

Commit

Permalink
Make each library a separate section
Browse files Browse the repository at this point in the history
Fixes #529
  • Loading branch information
jcoyne committed Oct 31, 2024
1 parent 2758b2b commit 9099b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/libraries/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

<%= render 'range' %>
<% @libraries.each do |library| %>
<div class="row library-row" itemscope itemtype="http://schema.org/Place">
<section class="row library-row" itemscope itemtype="http://schema.org/Place">
<div class="col-xs-12 col-md-3">
<h3 itemprop="name"><%= link_to library.name, library %></h3>
<header class="h3" itemprop="name"><%= link_to library.name, library %></header>
</div>

<div class="col-xs-12 col-md-9">
<%= render partial: 'location_hours', locals: { locations: library.locations } %>
</div>
</div>
</section>
<% end %>

<%= link_to 'New Library', new_library_path if can? :create, Library %>

0 comments on commit 9099b7d

Please sign in to comment.