OSDN Git Service

2801f31fb0512805f441764406ed2e8f43026710
[pettanr/pettanr.git] / app / views / stories / comic.html.erb
1 <h1><%= h @comic.title %></h1>
2
3 <% @stories.each do |story| %>
4   <% @story = story %>
5   <%= render 'header', :story => story %>
6   <%= render 'panels/body', :panel => story.panel %>
7   <%= render 'footer', :story => story %>
8   <% if story.own? @author -%>
9     <%= link_to 'move', edit_story_path(story), :remote => true %>
10       <span id="story-update-<%= @story.id -%>">
11         t
12       </span>
13   <% end -%>
14 <% end %>
15 <%= render 'licensed_pictures', :licensed_pictures => Story.licensed_pictures(@stories) %>
16 <h1><%= h @comic.title %></h1>
17 <% if @comic.own? @author -%>
18   <%= link_to 'add panel', new_story_path, :remote => true %>
19     <div id="story-create">
20       t
21     </div>
22 <% end %>
23 <%= link_to 'Back', comics_path %>