Sha256: 107d20765ac65106b0c16216e398ade41738b32af6bb729c2c0689afde7b6d36

Contents?: true

Size: 1.08 KB

Versions: 15

Compression:

Stored size: 1.08 KB

Contents

-# TODO turn this into a partial that is rendered on index

%table.table.effective-classified-table
  %tbody
    %tr
      %th Category
      %td= classified.category

    %tr
      %th Title
      %td= classified.title

    %tr
      %th Available
      %td
        #{classified.start_on&.strftime('%F')}
        to
        #{classified.end_on&.strftime('%F')}

    - if classified.location.present?
      %tr
        %th Location
        %td= classified.location

    %tr
      %th Description
      %td= classified.body.to_s

    - if classified.file.attached?
      %tr
        %th Attachment
        %td= link_to(classified.file.filename, main_app.url_for(classified.file), target: '_blank')

    %tr
      %th Company
      %td= classified.organization

    - if classified.website.present?
      %tr
        %th Website
        %td= link_to(classified.website, classified.website, target: '_blank')

    - if classified.email.present?
      %tr
        %th Email
        %td= mail_to(classified.email)

    - if classified.phone.present?
      %tr
        %th Phone
        %td= classified.phone

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
effective_classifieds-0.6.0 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.5.1 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.5.0 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.13 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.12 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.11 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.10 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.9 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.8 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.7 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.6 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.5 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.4 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.3 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.4.2 app/views/effective/classifieds/_classified.html.haml