Added Additional Delete Link in File Viewer View

I found myself clicking into specific files to see them larger, then wanting to delete them, only to find I had to go back to another screen to delete them.
This commit is contained in:
Joshua Myers 2024-02-02 15:34:01 -06:00 committed by GitHub
parent 8e87afae5b
commit 59255d5033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1748,6 +1748,9 @@ if (isset($_GET['view'])) {
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>">
<button type="submit" class="btn btn-link text-decoration-none fw-bold p-0"><i class="fa fa-cloud-download"></i> <?php echo lng('Download') ?></button> &nbsp;
</form>
<?php if (!FM_READONLY): ?>
<b class="ms-2"><a title="<?php echo lng('Delete') ?>" href="?p=<?php echo urlencode(FM_PATH) ?>&amp;del=<?php echo urlencode($file) ?>" onclick="confirmDailog(event, 1209, '<?php echo lng('Delete').' '.lng('File'); ?>','<?php echo urlencode($f); ?>', this.href);"> <i class="fa fa-trash-o"></i> Delete</a></b>
<?php endif; ?>
<b class="ms-2"><a href="<?php echo fm_enc($file_url) ?>" target="_blank"><i class="fa fa-external-link-square"></i> <?php echo lng('Open') ?></a></b>
<?php
// ZIP actions