Sha256: f2cec6ec3c24b21372c1823a610f23189add514d19beb9e7981af5322b380157

Contents?: true

Size: 903 Bytes

Versions: 16

Compression:

Stored size: 903 Bytes

Contents

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

%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 'file'
          - url = value.guess_url
          - url = url =~ /^http/ ? url : URI.join("http://#{@domain}", url).to_s # Amazon S3 (http/https) or local files ?
          = link_to File.basename(url), url
        - when 'select'
          = value
        - when 'belongs_to'
          = value.try(:_label)
        - when 'has_many', 'many_to_many'
          = value.map(&:_label).join(', ')
        - when 'tags'
          = value.join(', ')
        - else
          = value

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
locomotive_cms-2.5.6 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.6.rc2 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.6.rc1 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.5 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.4 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.3 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.2 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.1 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.0 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.0.rc3 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.0.rc2 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.5.0.rc1 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.4.1 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.4.0 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.3.1 app/views/locomotive/notifications/new_content_entry.html.haml
locomotive_cms-2.3.0 app/views/locomotive/notifications/new_content_entry.html.haml