OSDN Git Service

t#31538:fix default value
[pettanr/pettanr.git] / app / views / ground_colors / show.html.erb
index 782cf41..cf40b05 100644 (file)
 
 <%= 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 -%>