Sha256: 4582b23023b5302665d1c427fcef48d361b81614104c82c62dcaf29bc4d5d65a

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

.card.effective-classified
  .card-body
    %h5.card-title= classified.title

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

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

        %tr
          %td Location
          %td= classified.location.presence || '-'

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

        %tr
          %td Contact
          %td= classified.organization

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

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

    - if block_given?
      = yield
    - else
      %p= link_to('View Classified', effective_classifieds.classified_path(classified), class: 'btn btn-primary')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_classifieds-0.0.3 app/views/effective/classifieds/_classified.html.haml
effective_classifieds-0.0.2 app/views/effective/classifieds/_classified.html.haml