This is the changes for STUD-1244, which introduces the ability for Studio to display arbitrarily nested xblocks. In this change, a new container page is introduced which can display nested xblocks. In particular, the xblock type of 'vertical' is special cased to be shown inline as a collapsible section. The unit page is mostly unchanged, except that container xblock's are shown as a link to their container page, rather than being shown inline.
26 lines
1023 B
HTML
26 lines
1023 B
HTML
<%!
|
|
from django.utils.translation import ugettext as _
|
|
from contentstore.views.helpers import xblock_studio_url
|
|
%>
|
|
<%namespace name='static' file='static_content.html'/>
|
|
|
|
<section class="wrapper-xblock xblock-type-container level-element" data-locator="${locator}">
|
|
<header class="xblock-header">
|
|
<div class="header-details">
|
|
${xblock.display_name}
|
|
</div>
|
|
<div class="header-actions">
|
|
<ul class="actions-list">
|
|
<li class="action-item action-view">
|
|
<a href="${xblock_studio_url(xblock, course)}" class="action-button">
|
|
## Translators: this is a verb describing the action of viewing more details
|
|
<span class="action-button-text">${_('View')}</span>
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</header>
|
|
<span data-tooltip="${_("Drag to reorder")}" class="drag-handle"></span>
|
|
</section>
|