Add volunteer teams listing
This commit is contained in:
parent
c7c0b20139
commit
a7601ecd60
|
@ -0,0 +1,7 @@
|
|||
module Public
|
||||
class VolunteerTeamsController < Public::ApplicationController
|
||||
def index
|
||||
@volunteer_teams = current_conference.volunteer_teams
|
||||
end
|
||||
end
|
||||
end
|
|
@ -10,10 +10,7 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
resources :volunteers
|
||||
resources :volunteerships, only: [:index, :destroy]
|
||||
resources :volunteer_teams, only: [] do
|
||||
resource :volunteership, only: :create
|
||||
end
|
||||
resources :volunteer_teams, only: [:index]
|
||||
end
|
||||
|
||||
namespace :api do
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
- if volunteer_team_counter % 3 == 0
|
||||
.clearfix.visible-lg-block
|
||||
.col-lg-3
|
||||
h2 = volunteer_team.name
|
||||
.description
|
||||
= simple_format volunteer_team.description
|
|
@ -0,0 +1,6 @@
|
|||
- content_for(:title) { VolunteerTeam.model_name.human(count: 2).mb_chars.capitalize.to_s }
|
||||
|
||||
h1 = VolunteerTeam.model_name.human(count: 2).mb_chars.capitalize
|
||||
|
||||
.container.volunteer_teams
|
||||
= render partial: 'volunteer_team', collection: @volunteer_teams
|
Loading…
Reference in New Issue