24 lines
664 B
Plaintext
24 lines
664 B
Plaintext
.contain
|
|
%h1
|
|
= @project.title
|
|
- if policy(@project).edit?
|
|
= link_to 'Edit', edit_project_path(@project)
|
|
= render 'shared/follow_form' if current_user.signed_in?
|
|
|
|
.description
|
|
= @project.description
|
|
|
|
.stats
|
|
%p #{@project.followers.count} Followers
|
|
|
|
- if @project.user == current_user
|
|
%section.micropost_form
|
|
= render 'shared/micropost_form'
|
|
|
|
- if @project.microposts.where.not(id: nil).any?
|
|
%section.microposts
|
|
%h3 Posts #{@project.microposts.where.not(id: nil).count}
|
|
%ol.microposts
|
|
= render @project.microposts.where.not(id: nil)
|
|
= will_paginate @project.microposts.where.not(id: nil).paginate(page: params[:page])
|