From c224fe57eff070ecc189bbd43020d073c264a704 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Fri, 7 Mar 2014 14:24:55 -0500 Subject: [PATCH] Add banners to the instructor dashboard Notification banner to default dash to announce the change Warning banner on legacy instruction dashboard to explain it has been deprecated LMS-1296 --- .../sass/course/instructor/_instructor.scss | 15 ++++++++++++--- .../courseware/instructor_dashboard.html | 13 +++++++++---- .../instructor_dashboard_2.html | 6 ++++++ 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/lms/static/sass/course/instructor/_instructor.scss b/lms/static/sass/course/instructor/_instructor.scss index 059db7a3ee..d0a9ed59fe 100644 --- a/lms/static/sass/course/instructor/_instructor.scss +++ b/lms/static/sass/course/instructor/_instructor.scss @@ -121,9 +121,9 @@ } } } - + //Metrics tab - + .metrics-container { position: relative; width: 100%; @@ -170,6 +170,15 @@ border-radius: 5px; margin-top: 25px; } - + + .wrapper-msg { + margin-bottom: ($baseline*1.5); + padding: ($baseline/2) $baseline; + + .msg { + margin-bottom: 0; + } + } + } diff --git a/lms/templates/courseware/instructor_dashboard.html b/lms/templates/courseware/instructor_dashboard.html index cf549338f3..a08467a24f 100644 --- a/lms/templates/courseware/instructor_dashboard.html +++ b/lms/templates/courseware/instructor_dashboard.html @@ -7,7 +7,7 @@ <%inherit file="../main.html" /> <%namespace name='static' file='/static_content.html'/> -<%block name="pagetitle">${_("Instructor Dashboard")} +<%block name="pagetitle">${_("Legacy Instructor Dashboard")} <%block name="nav_skip">#instructor-dashboard-content <%block name="headextra"> @@ -139,7 +139,12 @@ function goto( mode)

${_("Instructor Dashboard")}

- # TODO put in a banner +
+
${_("You are using the legacy instructor dashboard, which will be going away in the near future. Please use the Standard Dashboard. If it is missing functionality, please let us know.")} + ${_("Return to the Standard Dashboard")}

+
+

${_("Explanation of Roles:")}

${_("Forum Moderators: can edit or delete any post, remove misuse flags, close and re-open threads, endorse " @@ -698,7 +703,7 @@ function goto( mode)

- +

${_("Loading the latest graphs for you; depending on your class size, this may take a few minutes.")}

%for i in range(0,len(metrics_results['section_display_name'])): diff --git a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html index f5de3a192c..b2281d712a 100644 --- a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html +++ b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html @@ -66,6 +66,12 @@

${_("Instructor Dashboard")}


+
+
${_("We've changed the look and feel of the Instructor Dashboard. During this transition time, you can still access the old Instructor Dashboard by clicking the 'Revert to Legacy Dashboard' button in the top right hand corner.")}

+
+
+ ## links which are tied to idash-sections below. ## the links are activated and handled in instructor_dashboard.coffee ## when the javascript loads, it clicks on the first section