Sha256: c0da5dd24690130c958b0f0c9e2e7dfa96349c8f5c07db4c85ba007b2c727e7a

Contents?: true

Size: 733 Bytes

Versions: 5

Compression:

Stored size: 733 Bytes

Contents

%p= t('.title', :name => @account.name, :date => I18n.l(Time.now), :locale => @account.locale)

%hr

%p
  %b= t('.type', :type => @type.name, :locale => @account.locale)
  %br
  %i= @type.description

%hr

%ul
  - @type.ordered_entries_custom_fields.each do |field|
    - value = @entry.send(field.name)
    %li
      %strong= field.label
       - 
      %i
        - case field.type.to_s
        - when 'string', 'text', 'boolean', 'date'
          = value
        - when 'file'
          = link_to File.basename(value.to_s), value.to_s
        - when 'select'
          = value
        - when 'belongs_to'
          = value.try(:_label)
        - when 'has_many', 'many_to_many'
          = value.map(&:_label).join(', ')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
locomotive_cms-2.0.0.rc9 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.0.0.rc8 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.0.0.rc7 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.0.0.rc6 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.0.0.rc5 app/views/locomotive/notifications/new_content_entry.html.haml