clarion/lib/initfest/views/public/volunteerships/_volunteer_team.slim

11 lines
566 B
Plaintext
Raw Permalink Normal View History

2015-09-02 00:20:23 +03:00
- if volunteer_team_counter % 3 == 0
.clearfix.visible-lg-block
.col-lg-3
h2 = volunteer_team.name
.description
= simple_format volunteer_team.description
- if signed_in? and volunteer_team.include? current_user
2015-09-02 00:20:23 +03:00
= button_to t('views.volunteerships.withdraw_application'), volunteership_path(volunteer_team.volunteerships.where(volunteer: current_user).first), class: ['btn-link', 'btn-link-red'], method: :delete
- else
= button_to t('views.volunteerships.apply'), volunteer_team_volunteership_path(volunteer_team), class: ['btn-link']