- provide :title, 'Projects'

.page-header
  %h1= yield :title

- if @projects.any?
  %table.table.table-striped
    %thead
      %tr
        %th Name
        %th Viewports
        %th
          = succeed 's' do
            %abbr.initialism{ title: 'Uniform Resource Locators' } URL

    %tbody
      - @projects.each do |project|
        %tr
          %td= link_to project.name, project, class: 'url-multiline'
          %td= project.viewports.map(&:to_s).join(', ')
          %td= project.urls.count

= link_to new_project_path, class: 'btn btn-primary' do
  %span.glyphicon.glyphicon-plus
  Add new Project


- provide :title, 'Projects'

.page-header
  %h1
    = yield :title
    = link_to new_project_path, class: 'btn btn-primary' do
      %span.glyphicon.glyphicon-plus
      Add new Project

- if @projects.any?
  %table.table.table-striped
    %thead
      %tr
        %th Name
        %th Viewports
        %th
          = succeed 's' do
            %abbr.initialism{ title: 'Uniform Resource Locators' } URL

    %tbody
      - @projects.each do |project|
        %tr
          %td= link_to project.name, project, class: 'url-multiline'
          %td= project.viewports.map(&:to_s).join(', ')
          %td= project.urls.count

Move "Add new Project" button to header
Move "Add new Project" button to header

Since we are not paginating the full list of projects, the button being
below the list of projects could potentially become a problem when you
have a large list of projects. Moving it to the top header resolves
that.
