mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-18 21:46:36 +02:00
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:
parent
c3a2f1d604
commit
bb1d1d3801
|
@ -1771,6 +1771,7 @@ if (isset($_GET['edit'])) {
|
||||||
fm_set_msg(lng('File not found'), 'error');
|
fm_set_msg(lng('File not found'), 'error');
|
||||||
fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
|
fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
|
||||||
}
|
}
|
||||||
|
$editFile = ' : <i><b>'. $file. '</b></i>';
|
||||||
header('X-XSS-Protection:0');
|
header('X-XSS-Protection:0');
|
||||||
fm_show_header(); // HEADER
|
fm_show_header(); // HEADER
|
||||||
fm_show_nav_path(FM_PATH); // current path
|
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) {
|
if ($parent !== false) {
|
||||||
?>
|
?>
|
||||||
<tr><?php if (!FM_READONLY): ?>
|
<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"><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>
|
||||||
<td class="border-0"></td>
|
<td class="border-0"></td>
|
||||||
|
@ -3378,7 +3379,7 @@ class FM_Zipper_Tar
|
||||||
*/
|
*/
|
||||||
function fm_show_nav_path($path)
|
function fm_show_nav_path($path)
|
||||||
{
|
{
|
||||||
global $lang, $sticky_navbar;
|
global $lang, $sticky_navbar, $editFile;
|
||||||
$isStickyNavBar = $sticky_navbar ? 'fixed-top' : '';
|
$isStickyNavBar = $sticky_navbar ? 'fixed-top' : '';
|
||||||
$getTheme = fm_get_theme();
|
$getTheme = fm_get_theme();
|
||||||
$getTheme .= " navbar-light";
|
$getTheme .= " navbar-light";
|
||||||
|
@ -3411,7 +3412,7 @@ function fm_show_nav_path($path)
|
||||||
}
|
}
|
||||||
$root_url .= $sep . implode($sep, $array);
|
$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">
|
<div class="col-xs-6 col-sm-7 text-right">
|
||||||
|
|
Loading…
Reference in a new issue