<div class="card" id="awaiting_approval">
    <div class="card-header" name="documents:home:you_can_approve">[You can approve the following]</div>
    <div class="card-body">
        <ul id="approval_items" class="nav flex-column checked-out-items"></ul>
    </div>
</div>

<script type="text/template" id="approvals_template">
    <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="{{=icon}}"></span> {{- file_name}}</a>

        <ul class="dropdown-menu float-right" role="menu" aria-labelledby="dLabel">
            {{ if (can_approve == 1) { }}
            <li>
                <a class="dropdown-item" name="publish" href="#publish" data-doc-id="{{-doc_id}}"><ion-icon name="checkbox-outline"></ion-icon> <txt name="documents:home:approve_draft">[Approve Draft]</txt></a>
            </li>
            {{ } }}
            <li>
                <a class="dropdown-item" href="/intranet/documents/{{=parent_id}}/{{=doc_id}}/?draft=1"><span class="glyphicons-info-sign glyphicons"></span> <txt name="documents:dashboard_actions:view_properties"></txt></a>
            </li>
            <li>
                <a class="dropdown-item" href="/intranet/documents/{{=parent_id}}/{{=doc_id}}/{{-file_name}}?draft=1&action=download"><span class="glyphicons-download glyphicons"></span> <txt name="documents:dashboard_actions:download"></txt></a>
            </li>
            {{ if (can_delete == 1) { }}
            <li>
                <a class="dropdown-item" name="reject" href="#reject" data-doc-id="{{-doc_id}}"><ion-icon name="trash-outline"></ion-icon> <txt name="documents:home:delete_draft">[Delete Draft]</txt></a>
            </li>
            {{ } }}
        </ul>
    </li>
</script>
