canvas-lms/app/views/context_modules
Brian Palmer 73380d2bc8 allow using an item in modules more than once
closes #8769

An item can be added to multiple modules, or even the same module more
than once. This is especially useful for attachment items, but is also
useful for allowing multiple paths through a course, with say an
assignment in two different modules and the user only has to complete
one of the two modules.

test plan:

For an item in only one module, verify that the module navigation still
appears if you go straight to that item's page, without going through
the modules page.

Add an item to more than one module. If you visit that item from the
modules page, you'll see the right nav depending on which instance of
the item you clicked on. If you visit the item directly without going
through the modules page, you'll see no nav.

Lock one instance of the item by adding a prerequisite, but leave the
other unlocked. You can still see the item as a student.

Lock all instances of the item with prerequisites. The item will now be
locked and you can't see it as a student.

Add completion requirements to the item, such as a minimum score on a
quiz. Make the requirements different -- 3 points in one instance and 5
in the other, for instance. Verify that if you get 3 points on the quiz,
one item is marked as completed but the other isn't, as expected.

Rename the item. Verify that all instances of it in modules get renamed.

Change-Id: I4f1b2f6f033062ec47ac34fe5eb973a950c17b0c
Reviewed-on: https://gerrit.instructure.com/11671
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
2012-06-21 10:12:22 -06:00
..
_content.html.erb use unicode compliant sorting for User#sortable_name (if possible) 2012-05-15 15:11:21 -06:00
_context_module.html.erb option to open BLTI links in a new tab 2011-10-07 13:44:52 -06:00
_context_module_right_side.html.erb i18n context_module 2011-06-16 09:09:01 -06:00
_module_item.html.erb allow using an item in modules more than once 2012-06-21 10:12:22 -06:00
index.html.erb AMD Conversion 2012-02-06 16:41:40 -07:00
url_show.html.erb AMD Conversion 2012-02-06 16:41:40 -07:00