asset-library.underscore 3.2 KB
Newer Older
1
<div class="assets-library">
2
    <div id="asset-paging-header"></div>
3

4
    <table class="assets-table">
5 6 7 8
        <caption class="sr"><%= gettext("List of uploaded files and assets in this course") %></caption>
        <colgroup>
            <col class="thumb-cols" />
            <col class="name-cols" />
9
            <col class="type-cols" />
10 11 12 13 14 15 16
            <col class="date-cols" />
            <col class="embed-cols" />
            <col class="actions-cols" />
        </colgroup>
        <thead>
        <tr>
            <th class="thumb-col"><%= gettext("Preview") %></th>
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
            <th class="name-col sortable-column">
                <span class="column-sort-link" id="js-asset-name-col" role="button" tabindex="0">
                    <%= gettext("Name") %>
                    <span class="sr"><%= gettext("- Sortable") %></span>
                </span>
            </th>
            <th class="type-col filterable-column nav-dd">
                <div id="js-asset-type-col" class="nav-item" role="button" tabindex="0">
                    <span class="title">
                        <span class="type-filter" data-alllabel='<%= gettext("Type") %>'><%= gettext("Type") %></span>
                        <span class="label-prefix sr">Filter</span>
                        <span class="filter-link"></span>
                        <i class="fa fa-caret-down ui-toggle-dd" aria-hidden="true"></i>
                    </span>
                    <div class="wrapper-nav-sub">
                        <div class="nav-sub">
                            <ul>
                                <li class="nav-item reset-filter">
                                    <a class="column-filter-link" href="" data-assetfilter="ALL">Show All</a>
                                </li>
                            <% _.each(typeData, function(type, key){ %>
                                <li class="nav-item">
                                    <a class="column-filter-link" href="" data-assetfilter="<%= type %>"><%= type %></a>
                                </li>
                            <% }) %>
                                <li class="nav-item">
                                    <a class="column-filter-link" href="" data-assetfilter="OTHER">Other</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </th>
            <th class="date-col sortable-column">
                <span class="column-sort-link" id="js-asset-date-col">
                    <%= gettext("Date Added") %>
                    <span class="sr"><%= gettext("- Sortable") %></span>
                </span>
            </th>
            <th class="embed-col"><%= gettext("URL") %></th>
57 58 59
            <th class="actions-col"><span class="sr"><%= gettext("Actions") %></span></th>
        </tr>
        </thead>
60
        <tbody id="asset-table-body"></tbody>
61 62 63 64
    </table>

    <div id="asset-paging-footer"></div>
</div>
65

66
<div class="no-asset-content">
67
    <p><%= gettext("You haven't added any assets to this course yet.") %> <a href="#" class="button new-button upload-button"><i class="icon fa fa-plus" aria-hidden="true"></i><%= gettext("Upload your first asset") %></a></p>
68
</div>