added name of the file being edited (#542)

added name of the file being edited and a back button in a better location
This commit is contained in:
Roni 2022-02-12 04:47:35 -03:00 committed by GitHub
parent c3a2f1d604
commit bb1d1d3801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1771,6 +1771,7 @@ if (isset($_GET['edit'])) {
fm_set_msg(lng('File not found'), 'error');
fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
}
$editFile = ' : <i><b>'. $file. '</b></i>';
header('X-XSS-Protection:0');
fm_show_header(); // HEADER
fm_show_nav_path(FM_PATH); // current path
@ -1969,7 +1970,7 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white
if ($parent !== false) {
?>
<tr><?php if (!FM_READONLY): ?>
<td class="nosort"></td><?php endif; ?>
<td class="nosort"></td><?php endif; ?><a href="?p=<?php echo urlencode($parent) ?>" style="font-size: 20px"><i class="fa fa-chevron-circle-left go-back" ></i> .. <?php echo lng('Back') ?></a>
<td class="border-0"><a href="?p=<?php echo urlencode($parent) ?>"><i class="fa fa-chevron-circle-left go-back"></i> ..</a></td>
<td class="border-0"></td>
<td class="border-0"></td>
@ -3378,7 +3379,7 @@ class FM_Zipper_Tar
*/
function fm_show_nav_path($path)
{
global $lang, $sticky_navbar;
global $lang, $sticky_navbar, $editFile;
$isStickyNavBar = $sticky_navbar ? 'fixed-top' : '';
$getTheme = fm_get_theme();
$getTheme .= " navbar-light";
@ -3411,7 +3412,7 @@ function fm_show_nav_path($path)
}
$root_url .= $sep . implode($sep, $array);
}
echo '<div class="col-xs-6 col-sm-5">' . $root_url . '</div>';
echo '<div class="col-xs-6 col-sm-5">' . $root_url . $editFile . '</div>';
?>
<div class="col-xs-6 col-sm-7 text-right">