% content_for :latest_filter do isLatest = session[:sort] == "latest" %> <%= link_to "Latest", url_for(sort: (isLatest ? "alpha" : "latest")), class: "btn btn-default btn-sm " + (isLatest ? " active" : ""), remote: true %> <% end %> <%= render'layouts/filter' %> <%= will_paginate class: "center" %>
Name | Authors | Serie |
---|---|---|
<%= link_to book.title, book %> | <% book.authors.each do |author| %> <%= link_to author.name, author %> <% end %> | <% if book.serie %> <%= link_to book.serie.name, book.serie %> <%= book.series_index.to_i %> <% end %> |