From 76fd81bab27382dc881918ede4d34ae0b8c5891f Mon Sep 17 00:00:00 2001 From: Colleen Palmer Date: Fri, 9 Jan 2015 14:30:27 -0700 Subject: [PATCH] Adds setup checklist button to Course publish header When you start a new course and there is the box that says, "Your Course is Unpublished" we have now added a button that will kick off the course setup checklist when activiated. Test Plan: - Start a new course - The Wizard should not automatically pop up - Click on the blue Setup Checklist button - The Wizard should now pop up Change-Id: I8a9a46f6eb3ce62a0f29e72ba397eb0169deda91 Reviewed-on: https://gerrit.instructure.com/46980 Tested-by: Jenkins Reviewed-by: Dan Minkevitch QA-Review: Jahnavi Yetukuri Product-Review: Clay Diffrient --- .../components/_g_instructure.sass | 17 +++++++++++++++ app/views/courses/show.html.erb | 21 +++++++++++++++---- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/app/stylesheets/components/_g_instructure.sass b/app/stylesheets/components/_g_instructure.sass index 2e578026eaf..2f1fe185e91 100644 --- a/app/stylesheets/components/_g_instructure.sass +++ b/app/stylesheets/components/_g_instructure.sass @@ -154,6 +154,23 @@ :width auto :padding 5px 10px +.Reminder__course-setup + .Reminder__course-setup-title + text-align: left + .Reminder__course-setup-subttitle + float: right + font-size: 11px + text-transform: capitalize + .Reminder__course-setup-body + text-align: center + p + font-size: 15px + margin-bottom: 0 + padding-bottom: 0 + a + margin: 0 0 10px 0 + + #floating_reminders :cursor move diff --git a/app/views/courses/show.html.erb b/app/views/courses/show.html.erb index 72155229a82..16809c886b5 100644 --- a/app/views/courses/show.html.erb +++ b/app/views/courses/show.html.erb @@ -159,10 +159,22 @@ <% js_bundle 'legacy/courses_show' %> <% if @context.created? || @context.claimed? %> -
-

<%= t('headings.unpublished', %{This Course is Unpublished}) %>

-
<%= t 'teachers_only', "Only teachers can see this course until it is *published*", :wrapper => (can_do(@context, @current_user, :update) ? '\1' : '\1') %> -
+
+

+ <%= t('headings.unpublished', %{This Course is Unpublished}) %> + + + <%= t 'teachers_only', "Only teachers can see this course until it is *published*", :wrapper => (can_do(@context, @current_user, :update) ? '\1' : '\1') %> + +

+
+

Need help setting up your course?

+
+ + <%= t("Setup Checklist") %> + + +
<% end %> <% if @context.has_open_course_imports? %> @@ -207,6 +219,7 @@ <% end %>
+ <% if @course_home_view == 'wiki' %> <% js_bundle :wiki_page_show %>