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