.row
  .col-md-12
    h3 = t('.title')
    table.table-striped.table
      thead
        tr
          th = t('common.name')
          th = t('common.featured')
          th = t('common.active')
          th Actions
          th
      tbody
        - [*@campaign_pages].each do |page|
          tr
            td = link_to page.title, page
            td
              span class=(page.featured? ? 'tick' : 'cross')
            td
              span class=(page.active? ? 'tick' : 'cross')
            td = page.actions.count

            td = link_to t('common.edit'), edit_campaign_page_path(page)


    = link_to t('.new'), new_campaign_page_path, class: 'btn btn-primary btn-sm'

    = render partial: 'search'

.row
  .col-md-12
    h3 = t('.title')
    table.table-striped.table
      thead
        tr
          th = t('common.name')
          th = t('common.featured')
          th = t('common.active')
          th Actions
          th
      tbody
        - @campaign_pages.each do |page|
          tr
            td = link_to page.title, page
            td
              span class=(page.featured? ? 'tick' : 'cross')
            td
              span class=(page.active? ? 'tick' : 'cross')
            td = page.actions.count

            td = link_to t('common.edit'), edit_campaign_page_path(page)


    = link_to t('.new'), new_campaign_page_path, class: 'btn btn-primary btn-sm'

    = render partial: 'search'

Move logic to protecting from nil to controller instead of view as per Omar's suggestion
Move logic to protecting from nil to controller instead of view as per Omar's suggestion

SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign