<%= link_to author_icon(:object => panel.author, :size => 17), author_path(panel.author) %>
</td>
<td>
- <%= link_to h(truncate(h(panel.caption), :length => 40)), :controller => 'stories', :action => :comic, :id => comic.id %>
+ <%= link_to h(truncate(h(panel.caption), :length => 40)), panel_path(panel) %>
</td>
<td>
<%= l panel.updated_at %>
</td>
<td>
- <% @story = Story.new :comic_id => comic.id, :panel_id => panel.id -%>
- <%= form_for(@story) do |f| %>
- <%= f.hidden_field :comic_id %>
+ <% @scroll_panel = ScrollPanel.new :scroll_id => scroll.id, :panel_id => panel.id -%>
+ <%= form_for(@scroll_panel) do |f| %>
+ <%= f.hidden_field :scroll_id %>
<%= f.hidden_field :t %>
<%= f.hidden_field :panel_id %>
- <%= f.submit t('stories.comic.append') %>
+ <%= f.submit t('scroll_panels.append.panel') %>
<% end %>
</td>
</tr>