OSDN Git Service

cf40b057061f9295d8bf934e998cec26f8c4a497
[pettanr/pettanr.git] / app / views / ground_colors / show.html.erb
1 <h1><%= t('.title') %></h1>
2 <p id="notice"><%= notice %></p>
3
4 <%= render 'panel_pictures/standard', :panel => @ground_color.panel, :author => @author, :spot => @ground_color %>
5
6 <p>
7   <b><%= t_m 'GroundColor.caption' -%>:</b>
8   <%= h @ground_color.caption %>
9 </p>
10
11 <p>
12   <b><%= t_m 'GroundColor.z' -%>:</b>
13   <%= @ground_color.z %>
14 </p>
15
16 <p>
17   <b><%= t_m 'GroundColor.t' -%>:</b>
18   <%= @ground_color.t %>
19 </p>
20
21 <p>
22   <b><%= t_m 'GroundColor.code' -%>:</b>
23   <%= @ground_color.code %>
24 </p>
25
26 <p>
27   <b><%= t_m 'GroundColor.created_at' -%>:</b>
28   <%= l @ground_color.created_at %>
29 </p>
30
31 <p>
32   <b><%= t_m 'GroundColor.updated_at' -%>:</b>
33   <%= l @ground_color.updated_at %>
34 </p>
35
36 <%= link_to t('link.edit'), edit_ground_color_path(@ground_color) %>
37 <%= link_to t('link.destroy'), ground_color_path(@ground_color), :method => :delete %>
38
39 <% if @author and @author.working? -%>
40   <h3><%= t('home.index.catch') -%></h3>
41   <%= link_to panel_icon(:object => @author.working_panel, :size => 25), panel_path(@author.working_panel) %>
42   <%= link_to @author.working_panel.caption, main_app.panel_path(@author.working_panel) %>
43
44   <p>
45     <%= link_to t('resource_pictures.add_to_panel_for_ground_color'), main_app.new_ground_color_path(:code => @ground_color.code) %>
46   </p>
47 <% end -%>