Add volunteer teams listing

This commit is contained in:
Petko Bordjukov 2015-10-21 23:20:04 +03:00
parent c7c0b20139
commit a7601ecd60
4 changed files with 20 additions and 4 deletions

View File

@ -0,0 +1,7 @@
module Public
class VolunteerTeamsController < Public::ApplicationController
def index
@volunteer_teams = current_conference.volunteer_teams
end
end
end

View File

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

View File

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

View File

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