Sha256: ca9f7f19a7d3815b604ba9f4474bf84f968dd3f098e0e5c3368192bd02394f69

Contents?: true

Size: 928 Bytes

Versions: 2

Compression:

Stored size: 928 Bytes

Contents

= card('Classified Submission') do
  - classified = classified_submission.classified

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

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_classifieds-0.0.3 app/views/effective/classified_submissions/_summary.html.haml
effective_classifieds-0.0.2 app/views/effective/classified_submissions/_summary.html.haml