- 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
        %th
        %th

    %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
          %td
            = link_to edit_project_path(project) do
              %span.glyphicon.glyphicon-edit
          %td
            = link_to project, method: :delete, data: { confirm: 'Are you sure?' } do
              %span.glyphicon.glyphicon-remove

= 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

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

    %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
          %td
            = link_to project, method: :delete, data: { confirm: 'Are you sure?' } do
              %span.glyphicon.glyphicon-remove

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


Remove direct-link to edit project form index page
Remove direct-link to edit project form index page

Editing a project is not a common task, and the option to edit is
already on the project show page. I'm remving the edit icon/link to save
up space and complexity.
