<%= h @comic.title %> <%= link_to 'p', comic_path(@comic) %> <%= link_to 'edit', edit_comic_path(@comic) %>
<% @stories.each do |story| %>
<% @story = story %>
<%= render 'header', :story => story, :author => @author %>
<%= render 'panels/body', :panel => story.panel, :author => @author %>
<%= render 'panels/footer', :panel => story.panel, :author => @author %>
<% end %>
<%= render 'licensed_pictures', :licensed_pictures => Story.licensed_pictures(@stories) %>
<% if @comic.own? @author -%>
<%= link_to 'add panel', new_story_path, :remote => true %>
t
<% end %>
<%= link_to 'Back', comics_path %>