2011-12-22 23:45:32 +00:00
|
|
|
%p= t('.title', :name => @account.name, :date => I18n.l(Time.now), :locale => @account.locale)
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%p
|
2012-01-09 14:49:59 +00:00
|
|
|
%b= t('.type', :type => @type.name, :locale => @account.locale)
|
2011-12-22 23:45:32 +00:00
|
|
|
%br
|
2012-01-09 14:49:59 +00:00
|
|
|
%i= @type.description
|
2011-12-22 23:45:32 +00:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%ul
|
2012-01-09 14:49:59 +00:00
|
|
|
- @type.entries_custom_fields.each do |field|
|
|
|
|
- value = @entry.value_for(field)
|
2011-12-22 23:45:32 +00:00
|
|
|
%li
|
|
|
|
%strong= field.label
|
|
|
|
-
|
|
|
|
%i
|
2012-01-09 14:49:59 +00:00
|
|
|
- if field.type == 'file'
|
|
|
|
= link_to File.basename(value), value
|
2011-12-22 23:45:32 +00:00
|
|
|
- else
|
2012-01-09 14:49:59 +00:00
|
|
|
= value
|