OSDN Git Service

upgrade rails 3.2
[pettanr/pettanr.git] / app / views / scroll_panels / _append_scroll.html.erb
1 <tr>
2   <td>
3     <%= link_to scroll_icon(:object => scroll, :size => 25), scroll_path(scroll) %>
4     <%= link_to h(truncate(scroll.title, :length => 40)), play_scroll_path(scroll) %>
5     (<%= scroll.scroll_panels.size -%>)
6   </td>
7   <td>
8     <%= distance_of_time_in_words_to_now scroll.updated_at %>
9   </td>
10   <td>
11     <%= link_to author_icon(:object => scroll.author, :size => 25), author_path(scroll.author) %>
12     <%= link_to h(truncate(scroll.author.name, :length => 12)), author_path(scroll.author) %>
13   </td>
14   <td>
15     <% if scroll.own? operators %>
16       <% @scroll_panel = ScrollPanel.new :scroll_id => scroll.id, :panel_id => panel.id %>
17       <%= form_for(@scroll_panel) do |f| %>
18         <%= f.hidden_field :scroll_id %>
19         <%= f.hidden_field :t %>
20         <%= f.hidden_field :panel_id %>
21         <div class="actions">
22           <%= f.submit t('scroll_panels.append.scroll') %>
23         </div>
24       <% end %>
25     <% end %>
26   </td>
27 </tr>
28 <tr>
29   <td colspan="4">
30     <%= h(truncate(scroll.description, :length => 40)) %>
31   </td>
32 </tr>