unit-outline.underscore 1.24 KB
Newer Older
1
<% if (parentInfo) { %>
2
    <li class="outline-item outline-<%= xblockType %> <%= visibilityClass %> <%= xblockInfo.get('id') === currentUnitId ? 'is-current' : '' %>"
3 4 5
        data-parent="<%= parentInfo.get('id') %>" data-locator="<%= xblockInfo.get('id') %>">
        <div class="<%= xblockType %>-header">
            <h3 class="<%= xblockType %>-header-details">
6
                <span class="<%= xblockType %>-title item-title">
Andrew Gaylard committed
7
                    <a href="<%= xblockInfo.get('studio_url') %>"><%- xblockInfo.get('display_name') %></a>
8
                </span>
9 10 11 12
            </h3>
        </div>
<% } %>

13
        <div class="<%= xblockType %>-content outline-content">
14
            <ol class="<%= typeListClass %>">
15 16 17 18 19
            </ol>
            <% if (childType) { %>
                <div class="add-<%= childType %> add-item">
                    <a href="#" class="button button-new" data-category="<%= childCategory %>"
                       data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>">
20
                        <span class="icon fa fa-plus" aria-hidden="true"></span><%= addChildLabel %>
21 22 23 24
                    </a>
                </div>
            <% } %>
        </div>
25 26

<% if (parentInfo) { %>
27
    </li>
28
<% } %>