2015-06-28 18:04:18 +00:00
|
|
|
<div class="page-header">
|
|
|
|
<h1>
|
|
|
|
<span class="glyphicon glyphicon-list"></span>
|
|
|
|
<%= @serie.name %>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<h2>
|
|
|
|
<span class="glyphicon glyphicon-book"></span>
|
2015-08-13 19:17:56 +00:00
|
|
|
<%= t(:serie_book, count: @serie.books.count) %>
|
2015-06-28 18:04:18 +00:00
|
|
|
</h2>
|
2015-06-28 15:14:47 +00:00
|
|
|
<ul>
|
2015-08-14 08:10:22 +00:00
|
|
|
<% @serie.books.in_serie.each do |book| %>
|
2015-06-28 18:04:18 +00:00
|
|
|
<li><%= book.series_index.to_i %>. <%= link_to book.title, book %></li>
|
2015-06-28 15:14:47 +00:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
2015-06-28 18:04:18 +00:00
|
|
|
<%
|
|
|
|
authors = Array.new
|
|
|
|
@serie.books.each do |book|
|
|
|
|
authors.concat book.authors
|
|
|
|
end
|
2015-06-29 17:51:55 +00:00
|
|
|
if authors
|
|
|
|
authors.uniq!
|
|
|
|
authors.sort! { |x,y| x.sort <=> y.sort }
|
|
|
|
%>
|
2015-06-28 18:04:18 +00:00
|
|
|
<h2>
|
|
|
|
<span class="glyphicon glyphicon-user"></span>
|
2015-08-13 19:17:56 +00:00
|
|
|
<%= t(:serie_author, count: authors.count) %>
|
2015-06-28 18:04:18 +00:00
|
|
|
</h2>
|
|
|
|
<ul>
|
|
|
|
<% authors.each do |author| %>
|
|
|
|
<li><%= link_to author.name, author %></li>
|
|
|
|
<% end%>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|