From a8d7a540eed716f5578ecfa9f28a23389b1a2a7b Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 16 May 2016 03:30:28 +0300 Subject: [PATCH] Remove reminants of the master branch --- app/controllers/schedule.rb | 25 ------------------- app/controllers/schedules_controller.rb | 10 -------- ...acceptance_second_notification.bg.text.erb | 18 ------------- ...acceptance_second_notification.en.text.erb | 18 ------------- 4 files changed, 71 deletions(-) delete mode 100644 app/controllers/schedule.rb delete mode 100644 app/controllers/schedules_controller.rb delete mode 100644 app/views/event_mailer/acceptance_second_notification.bg.text.erb delete mode 100644 app/views/event_mailer/acceptance_second_notification.en.text.erb diff --git a/app/controllers/schedule.rb b/app/controllers/schedule.rb deleted file mode 100644 index 3a0f3f2..0000000 --- a/app/controllers/schedule.rb +++ /dev/null @@ -1,25 +0,0 @@ -class Schedule - include ActiveModel::Model - attr_accessor :hall, :slots - - def self.for_conference(conference) - schedule = {} - conference.halls.each do |hall| - schedule[hall.id] = hall.slots.includes(:event, event: [:speakers]).where('starts_at < ?', Date.tomorrow).where.not(event_id: nil).order(:starts_at).map do |slot| - { - title: slot.event.title, - subtitle: slot.event.subtitle, - startTime: slot.starts_at, - endTime: slot.ends_at, - speakers: slot.event.speakers.map do |speaker| - { - name: speaker.name, - description: speaker.biography - } - end - } - end - end - schedule - end -end diff --git a/app/controllers/schedules_controller.rb b/app/controllers/schedules_controller.rb deleted file mode 100644 index 564a93e..0000000 --- a/app/controllers/schedules_controller.rb +++ /dev/null @@ -1,10 +0,0 @@ -class SchedulesController < ApplicationController - def show - @schedule = Schedule.for_conference Conference.current - headers['Access-Control-Allow-Origin'] = '*' - headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS' - headers['Access-Control-Max-Age'] = "1728000" - - respond_to { |format| format.json { render json: @schedule.to_json } } - end -end diff --git a/app/views/event_mailer/acceptance_second_notification.bg.text.erb b/app/views/event_mailer/acceptance_second_notification.bg.text.erb deleted file mode 100644 index f128c7d..0000000 --- a/app/views/event_mailer/acceptance_second_notification.bg.text.erb +++ /dev/null @@ -1,18 +0,0 @@ -Здравейте, - -Напомняме Ви, че предложението ви за участие в <%= @event.conference.title %> с <%= @event.class.model_name.human.mb_chars.downcase.to_s %> на тема „<%= @event.title %>“ беше одобрено. - -Моля, потвърдете участието си възможно най-скоро като кликнете на следния линк: -<% if @event.is_a? Lecture %> -<%= confirm_lecture_url(@event) %> -<% elsif @event.is_a? Workshop %> -<%= confirm_workshop_url(@event) %> -<% end %> - -Отговорете на този email, ако възникнат някакви въпроси. - -Първоначален вариант на програмата можете да видите тук: -http://wwwt.openfest.org/bg/programa/ - -Поздрави, -Екипът на <%= @event.conference.title %> diff --git a/app/views/event_mailer/acceptance_second_notification.en.text.erb b/app/views/event_mailer/acceptance_second_notification.en.text.erb deleted file mode 100644 index 68228e0..0000000 --- a/app/views/event_mailer/acceptance_second_notification.en.text.erb +++ /dev/null @@ -1,18 +0,0 @@ -Hello, - -We want to remind you that that your request for participation in <%= @event.conference.title %> with the <%= @event.class.model_name.human.mb_chars.downcase.to_s %> titled "<%= @event.title %>" was approved. - -Please confirm your participation as soon as you can by following the following link: -<% if @event.is_a? Lecture %> -<%= confirm_lecture_url(@event, locale: 'en') %> -<% elsif @event.is_a? Workshop %> -<%= confirm_workshop_url(@event, locale: 'en') %> -<% end %> - -Please respond to this email in case you have any questions. - -The initial conference schedule can be found here: -http://wwwt.openfest.org/en/schedule/ - -Regards, -The <%= @event.conference.title %> Team