29 lines
1.0 KiB
HTML
29 lines
1.0 KiB
HTML
|
|
<li class="directory-item folder flexcol {{#unless folder.expanded}}collapsed{{/unless}}"
|
||
|
|
data-folder-id="{{folder.id}}" data-uuid={{folder.uuid}} data-folder-depth="{{node.depth}}">
|
||
|
|
<header class="folder-header flexrow" {{#if folder.color}}style="background-color: {{folder.color.css}}"{{/if}}>
|
||
|
|
<h3 class="noborder"><i class="fas fa-folder-open fa-fw"></i>{{folder.name}}</h3>
|
||
|
|
|
||
|
|
{{#if @root.canCreateFolder}}
|
||
|
|
<a class="create-button create-folder">
|
||
|
|
<i class="{{@root.folderIcon}}"></i>
|
||
|
|
<i class="fas fa-plus"></i>
|
||
|
|
</a>
|
||
|
|
{{/if}}
|
||
|
|
{{#if @root.canCreateEntry}}
|
||
|
|
<a class="create-button create-entry">
|
||
|
|
<i class="{{@root.sidebarIcon}}"></i>
|
||
|
|
<i class="fas fa-plus"></i>
|
||
|
|
</a>
|
||
|
|
{{/if}}
|
||
|
|
</header>
|
||
|
|
|
||
|
|
<ol class="subdirectory" {{#if folder.color}}style="border-left-color: {{folder.color.css}}"{{/if}}>
|
||
|
|
{{~#each node.children}}
|
||
|
|
{{> (lookup @root "folderPartial") node=this folder=this.folder}}
|
||
|
|
{{/each}}
|
||
|
|
{{#each node.entries}}
|
||
|
|
{{> (lookup @root "entryPartial")}}
|
||
|
|
{{/each~}}
|
||
|
|
</ol>
|
||
|
|
</li>
|