OSDN Git Service

t#30009:fix views
[pettanr/pettanr.git] / app / views / stories / comic.html.erb
1 <h1><%= h @comic.title %> <%= link_to 'p', comic_path(@comic) %> <%= link_to 'edit', edit_comic_path(@comic) %></h1>
2
3 <% @stories.each do |story| %>
4   <% @story = story %>
5   <%= render 'header', :story => story, :author => @author %>
6   <%= render 'panels/body', :panel => story.panel, :author => @author %>
7   <%= render 'panels/footer', :panel => story.panel, :author => @author %>
8 <% end %>
9 <%= render 'licensed_pictures', :licensed_pictures => Story.licensed_pictures(@stories) %>
10 <% if @comic.own? @author -%>
11   <%= link_to 'add panel', new_story_path, :remote => true %>
12     <div id="story-create">
13       t
14     </div>
15 <% end %>
16 <%= link_to 'Back', comics_path %>