app/views/episodes/_list_four.html.haml
- readonly = !write rescue false
.episode-list{:class => "episode-list-#{anime.slug}"}
%ul
- episodes.each do |episode, watched|
%li.episode{:class => ("active" if watched)}
.title.large-10.columns
.episode-number= episode.format_season_episode
.episode-title= episode.title
.view-button.large-2.columns
- if watched
%strong
- if !readonly
= link_to "", watch_anime_episode_path(anime, episode, watched: false), method: :post, remote: user_signed_in?
- else
%strong
- if !readonly
= link_to "", watch_anime_episode_path(anime, episode, watched: true), method: :post, remote: user_signed_in?
%footer.large-12.columns
%p= link_to "view full episode list", anime_episodes_path(anime)