app/views/projects/_membership_buttons.html.haml
- joined = @project.joined(current_user) ? 'hidden': ''
= link_to(join_project_path(@episode, @project), :method => :post, :class => "btn btn-success #{joined}", remote: true) do
%i.fas.fa-plus
Join this project
- joined = @project.joined(current_user) ? '': 'hidden'
= link_to(leave_project_path(@episode, @project), :method => :post, :class => "btn btn-warning #{joined}", remote: true) do
%i.fas.fa-minus
Leave this project