.contain
  %h1 Listing projects

  -# - if policy(Project).new?
  %div{style: "align-self: start;"}
    = link_to '+ Add New Project', new_project_path

.projects-index
  - @projects.each do |project|
    = link_to project, class: "project" do
      %h1= project.title
      %p= project.description
      -# .social-links
        - project.social_links.each do |social_link|
          = social_link.to_icon.html_safe
      -# %p= project.about
      -# %span #{project.followers.count} Followers
      -# &nbsp;&nbsp;
      -# %span #{project.microposts.count} Posts
      - if policy(project).destroy?
        = link_to 'Edit', edit_project_path(project)
        = link_to 'Delete', project, method: :delete, data: { confirm: 'Are you sure?' }
