Show code of conduct on organizations

This commit is contained in:
James Mason 2018-03-16 12:18:09 -07:00 committed by Ana María Martínez Gómez
parent a6daff8582
commit 217ec1a46f
5 changed files with 30 additions and 7 deletions

View file

@ -5,6 +5,12 @@ class OrganizationsController < ApplicationController
@organizations = Organization.all
end
def code_of_conduct
@title = "#{@organization.name}: Code of Conduct"
@content = @organization.code_of_conduct
render 'document'
end
def conferences
@current = @organization.conferences.upcoming.reorder(start_date: :asc)
@antiquated = @organization.conferences.past