OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / scrolls / show.html.erb
index 48b0d62..18320c4 100644 (file)
@@ -4,7 +4,7 @@
 
 <p>
   <b><%= t_m 'Scroll.title' -%>:</b>
-  <%= link_to h(@scroll.title), :controller => 'scroll_panels', :action => :scroll, :id => @scroll.id %>
+  <%= link_to h(@scroll.title), play_scroll_path(@scroll) %>
 </p>
 
 <p>
 </p>
 
 <%= link_to t('link.edit'), edit_scroll_path(@scroll) %>
+<% if @scroll.own? @author -%>
+  <h3><%= t('scroll_panels.append.new_panels') -%></h3>
+  <table>
+    <% @new_panels.each do |panel| %>
+      <%= render 'scroll_panels/append_panel', :scroll => @scroll, :panel => panel, :author => @author %>
+    <% end %>
+  </table>
+<% end %>