OSDN Git Service

v07
[pettanr/pettanr.git] / app / views / scroll_panels / _footer.html.erb
1 <table class="no-border" style="margin: 0px; padding: 0px; width=100%">
2   <tr>
3     <td>
4       <% if scroll_panel.panel -%>
5         <%= link_to panel_icon(:object => scroll_panel.panel, :size => 25), panel_path(scroll_panel.panel) %>
6         <%= link_to author_icon(:object => scroll_panel.panel.author, :size => 17), author_path(scroll_panel.panel.author) %>
7         <%= distance_of_time_in_words_to_now scroll_panel.panel.updated_at %>
8       <% end %>
9     </td>
10     <td>
11       <%= scroll_panel_icon(:object => scroll_panel, :size => 25) %>
12       <%= link_to author_icon(:object => scroll_panel.scroll.author, :size => 17), author_path(scroll_panel.scroll.author) %>
13       <%= l scroll_panel.updated_at %>
14     </td>
15     <td>
16       <% if scroll_panel.own? operators %>
17         <%= render 'scroll_panels/order', :scroll_panel => scroll_panel %>
18       <% else %>
19         No.<%= scroll_panel.t %>
20       <% end %>
21     </td>
22     <td>
23       <%= link_to tag(:img, {:src => '/images/remove.png', :width => Manifest.manifest.magic_numbers['thumbnail_width'] / 2, :height => Manifest.manifest.magic_numbers['thumbnail_height'] / 2}), scroll_panel, confirm: 'Are you sure?', :method => :delete %>
24     </td>
25   </tr>
26 </table>