-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactors copy_move_popup to use pure Javascript
- Loading branch information
1 parent
8e9727b
commit 3a5be6d
Showing
2 changed files
with
132 additions
and
85 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,2 @@ | ||
<script id="clipboard-template" type="text/template"> | ||
{{#if files}} | ||
<div class="card mb-3"> | ||
<div class="card-body"> | ||
<button id="clipboard-clear" type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> | ||
<p class="mt-4">Copy or move the files below from <code>{{from}}</code> to the current directory:</p> | ||
</div> | ||
<ul class="list-group list-group-flush"> | ||
{{#each files}} | ||
{{#if directory}} | ||
<li class="list-group-item"><span title="directory" class="fa fa-folder color-gold"></span> {{name}}</li> | ||
{{else}} | ||
<li class="list-group-item"><span title="file" class="fa fa-file color-lightgrey"></span> {{name}}</li> | ||
{{/if}} | ||
{{/each}} | ||
</ul> | ||
<div class="card-body"> | ||
<button id="clipboard-copy-to-dir" class="btn btn-primary">Copy</button> <button id="clipboard-move-to-dir" class="btn btn-danger float-end">Move</button> | ||
</div> | ||
</div> | ||
{{/if}} | ||
</script> | ||
<div id="clipboard"></div> | ||
<div id="clipboard"></div> |