<% provide(:title, @series.name) %>
<%= image_tag @series.cached_banner, class: "img-responsive center-block" %><br>
<% if @new_episodes.any? %>
<h2>New episodes</h2>
    <%= render partial: 'episode_item', collection: @new_episodes, as: :episode %>
    <% end %>
<% if @seen_episodes.any? %>
    <h2>Watched episodes</h2>
    <%= render partial: 'episode_item', collection: @seen_episodes, as: :episode %>
<% end %>
<br><br>

<%= link_to 'Add an episode manually', new_series_episode_path(@series, @show), class: "btn btn-info" %>

<%= link_to 'Edit series', edit_series_path(@series), class: "btn btn-default" %>
<%= link_to 'Destroy series', series_path(@series), method: :destroy, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
<br><br>
<% provide(:title, @series.name) %>
<%= image_tag @series.cached_banner, class: "img-responsive center-block" %><br>
<% if @new_episodes.any? %>
<h2>New episodes</h2>
    <%= render partial: 'episode_item', collection: @new_episodes, as: :episode %>
    <% end %>
<% if @seen_episodes.any? %>
    <h2>Watched episodes</h2>
    <%= render partial: 'episode_item', collection: @seen_episodes, as: :episode %>
<% end %>
<br><br>

<%= link_to 'Add an episode manually', new_series_episode_path(@series, @show), class: "btn btn-info" %>

<%= link_to 'Edit series', edit_series_path(@series), class: "btn btn-default" %>
<%= link_to 'Destroy series', series_path(@series), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
<br><br>
Fix bug in series destroy
Fix bug in series destroy
