Sha256: ccd484e1ce011f2ac1bdebb579084a041477a02767adefabef6e4c2d85bc249d

Contents?: true

Size: 1.28 KB

Versions: 12

Compression:

Stored size: 1.28 KB

Contents

= render 'layout' do
  .effective-classified
    - unless @classified.published?
      .alert.alert-warning.mb-4 This posting is not published.

    .row
      .col-md-4
        %ul.list-unstyled
          %li
            %strong Company
            = @classified.organization

          - if @classified.location.present?
            %li
              %strong Location
              = @classified.location

          %li
            %strong Published
            #{@classified.start_on&.strftime("%b %d, %Y")}

          %li
            %strong Closing
            #{@classified.end_on&.strftime("%b %d, %Y")}


          - if @classified.file.attached?
            %li
              %strong Attachment
              = link_to(@classified.file.filename, main_app.url_for(@classified.file), target: '_blank')


        %ul.list-unstyled
          - if @classified.website.present?
            %li
              %strong Website
              = link_to(@classified.website, @classified.website, target: '_blank')

          - if @classified.email.present?
            %li
              %strong Email
              = mail_to(@classified.email)

          - if @classified.phone.present?
            %li
              %strong Phone
              = @classified.phone

      .col-md-8
        = @classified.body.to_s

Version data entries

12 entries across 12 versions & 1 rubygems

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