OSDN Git Service

t#32246:add sheet
[pettanr/pettanr.git] / app / views / sheets / show.html.erb
index 92c7477..f39894d 100644 (file)
@@ -2,43 +2,12 @@
 <h1><%= t('.title') %></h1>
 <p id="notice"><%= notice %></p>
 
-<p>
-  <b><%= t_m 'Sheet.caption' -%>:</b>
-  <%= link_to h(@sheet.caption), play_sheet_path(@sheet) %>
-</p>
+<%= render 'standard', :sheet => @sheet, :author => @author %>
 
-<p>
-  <b><%= t_m 'Sheet.width' -%>:</b>
-  <%= h(@sheet.width) %>
-</p>
+<% if @sheet.own? @author %>
+  <%= link_to t('link.edit'), edit_sheet_path(@sheet) %>
+  <%= link_to t('link.destroy'), sheet_path(@sheet), :method => :delete %>
 
-<p>
-  <b><%= t_m 'Sheet.height' -%>:</b>
-  <%= h(@sheet.height) %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.visible' -%>:</b>
-  <%= t_selected_item('sheet_visible_items', @sheet.visible) %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.author_id' -%>:</b>
-  <%= link_to h(@sheet.author.name), author_path(@sheet.author) %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.created_at' -%>:</b>
-  <%= l @sheet.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.updated_at' -%>:</b>
-  <%= l @sheet.updated_at %>
-</p>
-
-<%= link_to t('link.edit'), edit_sheet_path(@sheet) %>
-<% if @sheet.own? @author -%>
   <h3><%= t('sheet_panels.append.new_panels') -%></h3>
   <table>
     <% @new_panels.each do |panel| %>