1 <h1><%= h @comic.title %></h1>
3 <% @stories.each do |story| %>
5 <% @panel = story.panel %>
6 <%= render 'panels/standard' %>
7 <% if story.author.id == @author.id -%>
11 <%= button_to 'Destroy', @story, confirm: 'Are you sure?', method: :delete %>
12 <%= render 'editform' %>
13 <%= link_to 'open js', edit_story_path(story), :remote => true %>
14 <div id="story-update-<%= @story.id -%>">
19 <% if @comic.author.id == @author.id -%>
20 <%= link_to 'add panel', new_story_path, :remote => true %>
21 <div id="story-create">
25 <%= link_to 'Back', comics_path %>