2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2017-05-31 18:42:52 +05:30
|
|
|
class OrganizationsController < ApplicationController
|
|
|
|
|
load_and_authorize_resource :organization
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
@organizations = Organization.all
|
|
|
|
|
end
|
2017-10-11 20:22:32 -07:00
|
|
|
|
2018-03-16 12:18:09 -07:00
|
|
|
def code_of_conduct
|
|
|
|
|
@title = "#{@organization.name}: Code of Conduct"
|
|
|
|
|
@content = @organization.code_of_conduct
|
|
|
|
|
render 'document'
|
|
|
|
|
end
|
|
|
|
|
|
2017-10-11 20:22:32 -07:00
|
|
|
def conferences
|
|
|
|
|
@current = @organization.conferences.upcoming.reorder(start_date: :asc)
|
|
|
|
|
@antiquated = @organization.conferences.past
|
|
|
|
|
render '/conferences/index'
|
|
|
|
|
end
|
2017-05-31 18:42:52 +05:30
|
|
|
end
|