Sha256: 0b9e2924cc158032d45f20a3d90d021683d8f7c63f54589d0b098b3898cd4e2d

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

%table.table.table-striped
  %tr
    %th Title
    %th Active?
    %th Max Clicks
    %th Clicks
    %th Max Impressions
    %th Impressions
    %th
    %th
    %th
  - @advertisements.each do |advertisement|
    %tr
      %td= advertisement.title
      %td= advertisement.is_active
      %td
        - if advertisement.max_clicks == 0 || advertisement.max_clicks == nil
          Unlimited
        - else
          = advertisement.max_clicks
      %td
        - if advertisement.clicks == []
          None
        -else
          = advertisement.clicks
      %td
        - if advertisement.max_impressions == 0 || advertisement.max_impressions == nil
          Unlimited
        - else
          = advertisement.max_impressions
      %td
        - if advertisement.impressions_count == []
          None
        -else
          = advertisement.impressions_count
      %td= link_to 'Show', advertisement
      %td= link_to 'Edit', edit_advertisement_path(advertisement)
      %td= link_to 'Destroy', advertisement, confirm: 'Are you sure?', method: :delete

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_adserver-1.0.2 app/views/rails_adserver/advertisements/_advertisements_table.html.haml
rails_adserver-1.0.1 app/views/rails_adserver/advertisements/_advertisements_table.html.haml
rails_adserver-1.0.0 app/views/rails_adserver/advertisements/_advertisements_table.html.haml