From 4b56866d23f37f349ff275b8de88108a20804cbf Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Fri, 27 Sep 2013 15:09:18 +0800 Subject: [PATCH] Updated file name in writing conferences front end --- .../writing_conferences_controller.rb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/front_end/writing_conferences_controller.rb diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/front_end/writing_conferences_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/front_end/writing_conferences_controller.rb new file mode 100644 index 000000000..cc41fc030 --- /dev/null +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/front_end/writing_conferences_controller.rb @@ -0,0 +1,26 @@ +class Panel::PersonalConference::FrontEnd::WritingConferencesController < OrbitWidgetController + + def initialize + super + @app_title = 'personal_conference' + end + + + def index + + @writing_conferences = WritingConference.desc(:year).page(params[:page]).per(10) + + end + + # GET /writing_conferences/1 + # GET /writing_conferences/1.xml + def show + @writing_conference = WritingConference.find(params[:id]) + + @conference_paper_types = ( !@writing_conference.conference_paper_types.blank? ? @writing_conference.conference_paper_types.collect{|x| x.title}.join(', ') : nil) + @conference_author_types = ( !@writing_conference.conference_author_types.blank? ? @writing_conference.conference_author_types.collect{|x| x.title}.join(', ') : nil) + + end + + +end