Open up the volunteer team list to the public

This commit is contained in:
Petko Bordjukov 2015-09-02 00:25:55 +03:00
parent 256671d0be
commit ceaac3a9eb
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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']