2011-01-18 14:24:42 +00:00
|
|
|
%p= t('.title', :name => @account.name, :date => I18n.l(Time.now), :locale => @account.locale)
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%p
|
|
|
|
%b= t('.type', :type => @content.content_type.name, :locale => @account.locale)
|
|
|
|
%br
|
|
|
|
%i= @content.content_type.description
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%ul
|
|
|
|
- @content.custom_fields.each do |field|
|
|
|
|
%li
|
|
|
|
%strong= field.label
|
|
|
|
-
|
2011-07-28 14:42:16 +00:00
|
|
|
%i
|
|
|
|
- if field.file?
|
|
|
|
= link_to File.basename(@content.send(field._name).url), @content.send(field._name).url
|
|
|
|
- else
|
|
|
|
= @content.send(field._alias)
|