-
-
Save decebal/2870495 to your computer and use it in GitHub Desktop.
User File Manager Knockout View
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="dnnUserFileManager" class="dnnFileManager dnnClear"> | |
<div class="fm-explorer-wrap dnnLeft"> | |
<div class="fm-breadcrumb"> | |
<p> | |
<span data-bind="foreach: currentBreadcrumbs"> | |
<!-- ko if: id === $root.chosenFolderId() --> | |
<span data-bind="text: name"></span> | |
<!-- /ko --> | |
<!-- ko if: id !== $root.chosenFolderId() --> | |
<a href="#" data-bind="text: name, click: $root.goToFolder"></a> / | |
<!-- /ko --> | |
</span> | |
</p> | |
</div> | |
<div class="fm-explorer"> | |
<table data-bind="with: chosenFolderData" width="100%" border="0" cellspacing="0" cellpadding="0"> | |
<thead> | |
<tr> | |
<th class="fm-number" width="4%"></th> | |
<th class="fm-name" width="50%" data-bind="text: $root.nameHeaderText"></th> | |
<th class="fm-type" width="23%" data-bind="text: $root.typeHeaderText"></th> | |
<th class="fm-last-modified" width="23%" data-bind="text: $root.lastModifiedHeaderText"></th> | |
</tr> | |
</thead> | |
<tbody data-bind="foreach: children, updateRowNumbers: children"> | |
<!-- ko if: folder === true --> | |
<tr data-bind="event: { dblclick: $root.goToFolder }"> | |
<td class="fm-number"></td> | |
<td><span data-bind="visible: folder" class="fm-folder"></span><span data-bind="text: name"></span></td> | |
<td data-bind="text: type" class="fm-file-type"></td> | |
<td data-bind="text: modified" class="fm-modified-time"></td> | |
</tr> | |
<!-- /ko --> | |
<!-- ko if: folder === false --> | |
<tr data-bind="event: { click: $root.showFilePreview, dblclick: $root.attachFile }"> | |
<td class="fm-number"></td> | |
<td><span data-bind="visible: folder" class="fm-folder"></span><span data-bind="text: name"></span></td> | |
<td data-bind="text: type" class="fm-file-type"></td> | |
<td data-bind="text: modified" class="fm-modified-time"></td> | |
</tr> | |
<!-- /ko --> | |
</tbody> | |
</table> | |
</div> | |
</div> | |
<div class="fm-preview-area dnnRight" data-bind="with: chosenFileData"> | |
<div class="fm-file-preview"> | |
<img data-bind="visible: thumb_url != null, attr: { src: thumb_url }" alt="" /> | |
</div> | |
<div class="fm-file-info"> | |
<p><span data-bind="text: $root.fileSizeText"></span> <span data-bind="text: size"></span></p> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment