OSDN Git Service

t#32402:add file prof
[pettanr/pettanr.git] / app / views / ground_colors / show.html.erb
index cf40b05..0b9b3d0 100644 (file)
@@ -9,6 +9,21 @@
 </p>
 
 <p>
+  <b><%= t_m 'GroundColor.orientation' -%>:</b>
+  <%= t_selected_item('ground_color_orientation_items', @ground_color.orientation) %>
+</p>
+
+<p>
+  <b><%= t_m 'GroundColor.xy' -%>:</b>
+  <%= @ground_color.xy %>
+</p>
+
+<p>
+  <b><%= t_m 'GroundColor.wh' -%>:</b>
+  <%= @ground_color.wh %>
+</p>
+
+<p>
   <b><%= t_m 'GroundColor.z' -%>:</b>
   <%= @ground_color.z %>
 </p>
 <%= link_to t('link.edit'), edit_ground_color_path(@ground_color) %>
 <%= link_to t('link.destroy'), ground_color_path(@ground_color), :method => :delete %>
 
-<% if @author and @author.working? -%>
-  <h3><%= t('home.index.catch') -%></h3>
-  <%= link_to panel_icon(:object => @author.working_panel, :size => 25), panel_path(@author.working_panel) %>
-  <%= link_to @author.working_panel.caption, main_app.panel_path(@author.working_panel) %>
-
-  <p>
-    <%= link_to t('resource_pictures.add_to_panel_for_ground_color'), main_app.new_ground_color_path(:code => @ground_color.code) %>
-  </p>
-<% end -%>
+<%= render 'panels/element_copy', :element => @ground_color, :author => @author %>