OSDN Git Service

fix owner
[pettanr/pettanr.git] / app / views / artists / show.html.erb
index 7535d6f..9292d6c 100644 (file)
@@ -1,22 +1,23 @@
-<% @page_title = t('.title') + ':' + @artist.name %>
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b><%= t_m 'Artist.name' -%>:</b>
-  <%= h @artist.name %>
-</p>
+<% @page_title = t('.title') + ':' + @item.name %>
+<h1>
+  <%= link_to icon_tag('Artist'), artist_path(@item) %>
+  <%= link_to h(@item.name), artist_path(@item) %>
+  <%= link_to icon_tag('Prof'), artist_path(@item, :format => :prof) %>
+</h1>
 
 <p>
   <b><%= t_m 'Artist.created_at' -%>:</b>
-  <%= l @artist.created_at %>
+  <%= l @item.created_at %>
 </p>
 
 <p>
   <b><%= t_m 'Artist.updated_at' -%>:</b>
-  <%= l @artist.updated_at %>
+  <%= l @item.updated_at %>
 </p>
 
-<% if @artist.own?(@artist) %>
-  <%= link_to t('link.edit'), edit_artist_path(@artist) %>
+<% if @item.own?(@item) %>
+  <h3><%= t('editor') -%></h3>
+  <p id="notice"><%= notice %></p>
+  
+  <%= link_to t('link.edit'), edit_artist_path(@item) %>
 <% end %>