OSDN Git Service

t#28985:add credit
[pettanr/pettanr.git] / app / views / standard_licenses / _credit.html.erb
index 1b5316f..cfa175f 100644 (file)
@@ -1,7 +1,7 @@
 <div>
 <%= content_tag(:a, 
-  tag(:img, :src => @resource_picture.license.system_picture.url, :alt => h(@resource_picture.license.license_group.caption.to_s + '[' + @resource_picture.license.caption.to_s + ']')), 
-  :href => @resource_picture.license.url )
+  tag(:img, :src => picture.license.system_picture.url, :alt => h(picture.license.license_group.caption.to_s + '[' + picture.license.caption.to_s + ']')), 
+  :href => picture.license.url )
 %>
 </div>
-著作者:<%= link_to h(@resource_picture.artist_name), :controller => 'artists', :action => :show, :id => @resource_picture.artist.id %>
+著作者:<%= link_to h(picture.artist_name), :controller => 'artists', :action => :show, :id => picture.artist.id %>