Studio support for cohorted courseware
TNL-652
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from contentstore.views.helpers import xblock_studio_url
|
||||
from contentstore.utils import is_visible_to_specific_content_groups
|
||||
import json
|
||||
%>
|
||||
<%
|
||||
@@ -38,8 +39,11 @@ messages = json.dumps(xblock.validate().to_json())
|
||||
<div class="studio-xblock-wrapper" data-locator="${xblock.location | h}" data-course-key="${xblock.location.course_key | h}">
|
||||
% endif
|
||||
|
||||
<!-- NOTE: @andyarmstrong, in order to style the case when an access level is set, we need to add a class to each xblock's wrapper. How does .has-visiblity-set sound? -->
|
||||
<section class="wrapper-xblock ${section_class} ${collapsible_class} has-visibility-set">
|
||||
<section class="wrapper-xblock ${section_class} ${collapsible_class}
|
||||
% if is_visible_to_specific_content_groups(xblock):
|
||||
has-group-visibility-set
|
||||
% endif
|
||||
">
|
||||
% endif
|
||||
|
||||
<header class="xblock-header xblock-header-${xblock.category}">
|
||||
@@ -77,7 +81,6 @@ messages = json.dumps(xblock.validate().to_json())
|
||||
<span class="sr">${_("Delete")}</span>
|
||||
</a>
|
||||
</li>
|
||||
<!-- NOTE: @andyarmstrong, here's a static version of the new access control we're adding. Remember we wanted to update the tooltip if particular groups were set on a component -->
|
||||
<li class="action-item action-visibility">
|
||||
<a href="#" data-tooltip="${_("Visibility Settings")}" class="visibility-button action-button">
|
||||
<i class="icon-eye-open"></i>
|
||||
|
||||
Reference in New Issue
Block a user