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

11 lines
551 B
Plaintext
Raw 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 volunteer_team.include? current_user
= 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']