OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / scroll_panels / _append_scroll.html.erb
similarity index 80%
rename from app/views/panels/_append_scroll.html.erb
rename to app/views/scroll_panels/_append_scroll.html.erb
index 83aef11..1813b38 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
   <td>
     <%= link_to scroll_icon(:object => scroll, :size => 25), scroll_path(scroll) %>
-    <%= link_to h(truncate(scroll.title, :length => 40)), :controller => 'scroll_panels', :action => :scroll, :id => scroll.id %>
+    <%= link_to h(truncate(scroll.title, :length => 40)), play_scroll_path(scroll) %>
     (<%= scroll.scroll_panels.size -%>)
   </td>
   <td>
     <%= distance_of_time_in_words_to_now scroll.updated_at %>
   </td>
   <td>
-    <%= link_to author_icon(:object => scroll.author, :size => 25), scroll_path(scroll.author) %>
+    <%= link_to author_icon(:object => scroll.author, :size => 25), author_path(scroll.author) %>
     <%= link_to h(truncate(scroll.author.name, :length => 12)), author_path(scroll.author) %>
   </td>
   <td>
@@ -19,7 +19,7 @@
         <%= f.hidden_field :t %>
         <%= f.hidden_field :panel_id %>
         <div class="actions">
-          <%= f.submit t('panels.show.append') %>
+          <%= f.submit t('scroll_panels.append.scroll') %>
         </div>
       <% end %>
     <% end %>