nav.actions
  ul.list-inline
    li = link_to icon('plus', 'Submit a Project'), new_project_path, class: 'btn btn-default btn-sm'

h1.header
  = icon('group')
  span Projects

table.table.table-striped.table-bordered.table-condensed
  tr
    th = sortable 'name'
    th = sortable 'created_at', 'Submitted'
    th = sortable 'aasm_state', 'Status'

  - @projects.each do |project|
    tr
      td = link_to project.name, project
      td = l project.created_at

nav.actions
  ul.list-inline
    li = link_to icon('plus', 'Submit a Project'), new_project_path, class: 'btn btn-default btn-sm'

h1.header
  = icon('group')
  span Projects

table.table.table-striped.table-bordered.table-condensed
  tr
    th = sortable 'name'
    th = sortable 'created_at', 'Submitted'
    th = sortable 'aasm_state', 'Status'

  - @projects.each do |project|
    tr
      td
        = link_to project.name, project
        - if current_user == project.submitter
          = link_to [:edit, project], class: 'edit-project' do
            = icon('edit')
      td = l project.created_at

Add link to edit project if submitter is logged in
Add link to edit project if submitter is logged in

michaelem/rgsoc-teams,beanieboi/rgsoc-teams,ramonh/rgsoc-teams,beanieboi/rgsoc-teams,rails-girls-summer-of-code/rgsoc-teams,michaelem/rgsoc-teams,TeamCheesy/rgsoc-teams,TeamCheesy/rgsoc-teams,rails-girls-summer-of-code/rgsoc-teams,beanieboi/rgsoc-teams,ramonh/rgsoc-teams,michaelem/rgsoc-teams,ramonh/rgsoc-teams,TeamCheesy/rgsoc-teams,rails-girls-summer-of-code/rgsoc-teams