Sha256: f54b4e3b9c2caf3fa5158dd875d010a33d20577c43dbe22a21ee23480247f9be

Contents?: true

Size: 817 Bytes

Versions: 13

Compression:

Stored size: 817 Bytes

Contents

- classified = classified_wizard.classified

%table.table.table-sm
  %tbody
    %tr
      %th.border-0 Posting
      %td.border-0

        - if classified&.published?
          = link_to(classified, effective_classifieds.classified_path(classified), target: '_blank')
        - else
          = classified.presence || 'Posting was deleted'

    - if request.path.start_with?('/admin')
      %tr
        %th Owner
        %td
          - url = (polymorphic_admin_path(classified_wizard.owner) rescue "/admin/users/#{classified_wizard.owner.to_param}/edit")
          = link_to(classified_wizard.owner, url)
    - else
      %tr
        %th Owner
        %td= classified_wizard.owner

    - if classified&.was_submitted?
      %tr
        %th Status
        %td
          %span.badge.badge-secondary= classified.status

Version data entries

13 entries across 13 versions & 1 rubygems

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