diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py
index b3bb134e3d..df0f5c41d2 100644
--- a/cms/djangoapps/contentstore/views.py
+++ b/cms/djangoapps/contentstore/views.py
@@ -125,7 +125,8 @@ def index(request):
reverse('course_index', args=[
course.location.org,
course.location.course,
- course.location.name]))
+ course.location.name]),
+ get_lms_link_for_item(course.location))
for course in courses],
'user': request.user,
'disable_course_creation': settings.MITX_FEATURES.get('DISABLE_COURSE_CREATION', False) and not request.user.is_staff
@@ -166,6 +167,8 @@ def course_index(request, org, course, name):
if not has_access(request.user, location):
raise PermissionDenied()
+ lms_link = get_lms_link_for_item(location)
+
upload_asset_callback_url = reverse('upload_asset', kwargs={
'org': org,
'course': course,
@@ -178,6 +181,7 @@ def course_index(request, org, course, name):
return render_to_response('overview.html', {
'active_tab': 'courseware',
'context_course': course,
+ 'lms_link': lms_link,
'sections': sections,
'course_graders': json.dumps(CourseGradingModel.fetch(course.location).graders),
'parent_location': course.location,
diff --git a/cms/static/coffee/src/views/tabs.coffee b/cms/static/coffee/src/views/tabs.coffee
index 5a826c1794..9fbe4e5789 100644
--- a/cms/static/coffee/src/views/tabs.coffee
+++ b/cms/static/coffee/src/views/tabs.coffee
@@ -1,6 +1,4 @@
class CMS.Views.TabsEdit extends Backbone.View
- events:
- 'click .new-tab': 'addNewTab'
initialize: =>
@$('.component').each((idx, element) =>
@@ -13,6 +11,7 @@ class CMS.Views.TabsEdit extends Backbone.View
)
)
+ @options.mast.find('.new-tab').on('click', @addNewTab)
@$('.components').sortable(
handle: '.drag-handle'
update: @tabMoved
diff --git a/cms/templates/edit-tabs.html b/cms/templates/edit-tabs.html
index 7f28c46457..95b14fd5cf 100644
--- a/cms/templates/edit-tabs.html
+++ b/cms/templates/edit-tabs.html
@@ -9,7 +9,8 @@
el: $('.main-wrapper'),
model: new CMS.Models.Module({
id: '${context_course.location}'
- })
+ }),
+ mast: $('.wrapper-mast')
});
%block>
@@ -36,7 +37,7 @@
-
Static Pages are additional pages that supplment your Courseware. Other course authors have used them to share a syllabus, calendar, handouts, and more.
+
Static Pages are additional pages that supplement your Courseware. Other course authors have used them to share a syllabus, calendar, handouts, and more.
diff --git a/cms/templates/index.html b/cms/templates/index.html
index a70ef16a6c..3912347897 100644
--- a/cms/templates/index.html
+++ b/cms/templates/index.html
@@ -67,12 +67,12 @@
% if user.is_active:
diff --git a/cms/templates/overview.html b/cms/templates/overview.html
index 07834af687..67ae85aff5 100644
--- a/cms/templates/overview.html
+++ b/cms/templates/overview.html
@@ -137,7 +137,7 @@
+ New Section
- View Live
+ View Live