Initial
This commit is contained in:
28
resources/app/templates/sidebar/folder-partial.html
Normal file
28
resources/app/templates/sidebar/folder-partial.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user