diff --git a/cms/static/js/index.js b/cms/static/js/index.js index e1c91d03a1..e4470ea22c 100644 --- a/cms/static/js/index.js +++ b/cms/static/js/index.js @@ -141,6 +141,8 @@ define(["domReady", "jquery", "underscore", "js/utils/cancel_on_escape", "js/vie e.preventDefault(); $('.courses-tab').toggleClass('active', tab === 'courses'); $('.libraries-tab').toggleClass('active', tab === 'libraries'); + // Also toggle this course-related notice shown below the course tab, if it is present: + $('.wrapper-creationrights').toggleClass('is-hidden', tab === 'libraries'); }; }; diff --git a/cms/templates/index.html b/cms/templates/index.html index c4ca6e0685..d8fe4389dd 100644 --- a/cms/templates/index.html +++ b/cms/templates/index.html @@ -103,57 +103,57 @@ - %if libraries_enabled: -
-
-
- + % endif + + %if libraries_enabled and show_new_library_button: +
+ +
+ +
-
-

${_("Create a New Library")}

+
+

${_("Create a New Library")}

-
- ${_("Required Information to Create a New Library")} +
+ ${_("Required Information to Create a New Library")} -
    -
  1. - - ## Translators: This is an example name for a new content library, seen when filling out the form to create a new library. (A library is a collection of content or problems.) - - ${_("The public display name for your library.")} - -
  2. -
  3. - - - ${_("The public organization name for your library.")} ${_("This cannot be changed.")} - -
  4. +
      +
    1. + + ## Translators: This is an example name for a new content library, seen when filling out the form to create a new library. (A library is a collection of content or problems.) + + ${_("The public display name for your library.")} + +
    2. +
    3. + + + ${_("The public organization name for your library.")} ${_("This cannot be changed.")} + +
    4. -
    5. - - ## Translators: This is an example for the "code" used to identify a library, seen when filling out the form to create a new library. This example is short for "Computer Science Problems". The example number may contain letters but must not contain spaces. - - ${_("The unique code that identifies this library.")} ${_("Note: This is part of your library URL, so no spaces or special characters are allowed.")} ${_("This cannot be changed.")} - -
    6. -
    +
  5. + + ## Translators: This is an example for the "code" used to identify a library, seen when filling out the form to create a new library. This example is short for "Computer Science Problems". The example number may contain letters but must not contain spaces. + + ${_("The unique code that identifies this library.")} ${_("Note: This is part of your library URL, so no spaces or special characters are allowed.")} ${_("This cannot be changed.")} + +
  6. +
-
-
- -
- - - -
- -
- % endif + +
+
+ + + +
+ +
% endif