Open up the volunteer team list to the public
This commit is contained in:
parent
256671d0be
commit
ceaac3a9eb
|
@ -1,6 +1,6 @@
|
||||||
module Public
|
module Public
|
||||||
class VolunteershipsController < Public::ApplicationController
|
class VolunteershipsController < Public::ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!, only: [:create, :destroy]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@volunteer_teams = current_conference.volunteer_teams
|
@volunteer_teams = current_conference.volunteer_teams
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
h2 = volunteer_team.name
|
h2 = volunteer_team.name
|
||||||
.description
|
.description
|
||||||
= simple_format volunteer_team.description
|
= simple_format volunteer_team.description
|
||||||
- if volunteer_team.include? current_user
|
- if signed_in? and 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
|
= 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
|
- else
|
||||||
= button_to t('views.volunteerships.apply'), volunteer_team_volunteership_path(volunteer_team), class: ['btn-link']
|
= button_to t('views.volunteerships.apply'), volunteer_team_volunteership_path(volunteer_team), class: ['btn-link']
|
||||||
|
|
Loading…
Reference in New Issue