diff --git a/Gemfile b/Gemfile
index 3c2ff716fbe..0d32377916c 100644
--- a/Gemfile
+++ b/Gemfile
@@ -39,7 +39,7 @@ gem 'builder', '3.0.0'
# enforce the version of bundler itself, to avoid any surprises
gem 'bundler', '1.3.5'
gem 'canvas_connect', '0.3.1'
-gem 'canvas_webex', '0.7'
+gem 'canvas_webex', '0.8'
gem 'daemons', '1.1.0'
gem 'diff-lcs', '1.1.3', :require => 'diff/lcs'
if CANVAS_RAILS2
diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb
index e4d833da8ca..341324b0a21 100644
--- a/app/controllers/courses_controller.rb
+++ b/app/controllers/courses_controller.rb
@@ -1187,6 +1187,7 @@ class CoursesController < ApplicationController
@contexts += @user_groups if @user_groups
end
@current_conferences = @context.web_conferences.select{|c| c.active? && c.users.include?(@current_user) }
+ @scheduled_conferences = @context.web_conferences.select{|c| c.scheduled? && c.users.include?(@current_user)}
@stream_items = @current_user.try(:cached_recent_stream_items, { :contexts => @contexts }) || []
end
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index a4d2cc2a0d0..eeb84200399 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -290,6 +290,7 @@ class GroupsController < ApplicationController
return
end
@current_conferences = @group.web_conferences.select{|c| c.active? && c.users.include?(@current_user) } rescue []
+ @scheduled_conferences = @context.web_conferences.select{|c| c.scheduled? && c.users.include?(@current_user)} rescue []
@stream_items = @current_user.try(:cached_recent_stream_items, { :contexts => @context }) || []
if params[:join] && @group.grants_right?(@current_user, :join)
if @group.full?
diff --git a/app/models/web_conference.rb b/app/models/web_conference.rb
index 9465f68abda..6759470f386 100644
--- a/app/models/web_conference.rb
+++ b/app/models/web_conference.rb
@@ -272,6 +272,16 @@ class WebConference < ActiveRecord::Base
self.ended_at = nil
self.save
end
+
+ # Default implementation since most implementations don't support scheduling yet
+ def scheduled?
+ self.started_at.nil? && scheduled_date && scheduled_date > Time.now
+ end
+
+ # Default implementation since most implementations don't support scheduling yet
+ def scheduled_date
+ nil
+ end
def active?(force_check=false)
if !force_check
diff --git a/app/views/jst/conferences/concludedConference.handlebars b/app/views/jst/conferences/concludedConference.handlebars
index b5fe745aab9..0461f44014e 100644
--- a/app/views/jst/conferences/concludedConference.handlebars
+++ b/app/views/jst/conferences/concludedConference.handlebars
@@ -71,7 +71,7 @@
{{/each}}
-
{{/if}}
diff --git a/app/views/jst/conferences/newConference.handlebars b/app/views/jst/conferences/newConference.handlebars
index 7d95f2c5fc3..6a312ed896a 100644
--- a/app/views/jst/conferences/newConference.handlebars
+++ b/app/views/jst/conferences/newConference.handlebars
@@ -14,6 +14,9 @@
{{/if}}
{{description}}
+ {{#if scheduled}}
+
{{datetimeFormatted scheduled_at}}
+ {{/if}}
{{#if started_at}}
{{#t "in_progress"}}In Progress{{/t}}
diff --git a/app/views/jst/conferences/userSettingOptions.handlebars b/app/views/jst/conferences/userSettingOptions.handlebars
index f86d8a3d002..c4e87f42c13 100644
--- a/app/views/jst/conferences/userSettingOptions.handlebars
+++ b/app/views/jst/conferences/userSettingOptions.handlebars
@@ -12,7 +12,8 @@
>
{{description}}
- {{else}} {{#if isText}}
+ {{/if}}
+ {{#if isText}}