OSDN Git Service

t#29705:create story show
[pettanr/pettanr.git] / app / views / stories / show.html.erb
index c8b19a8..9fe43d2 100644 (file)
@@ -1,4 +1,4 @@
-  <% @panel = story.panel %>
+  <% @panel = @story.panel %>
   <%= render 'panels/standard' %>
   <% if @story.author.id == @author.id -%>
     <span>
@@ -11,9 +11,9 @@
         t
       </div>
   <% end -%>
-<% end %>
-<% if @comic.author.id == @author.id -%>
+<% if @story.comic.own? @author -%>
   <%= link_to 'add panel', new_story_path, :remote => true %>
     <div id="story-create">
       t
     </div>
+<% end %>