Fix to improve displaying file path and preview

This commit is contained in:
Ilia Ross
2025-11-11 01:36:03 +02:00
parent 2133d5d4bf
commit 4f851d71b1

View File

@@ -30,14 +30,12 @@ for($i=0; $i<$n; $i++) {
push(@cols, "", ""); push(@cols, "", "");
} }
else { else {
$table = "<table width=100% cellpadding=0 cellspacing=0><tr><td>". my $table = &ui_link($ls, &html_escape($files{$i,'path'}));
&ui_link($ls, &html_escape($files{$i,'path'}) ).
"</td><td align=right>\n";
if ($ty == 0 || $ty == 5) { if ($ty == 0 || $ty == 5) {
$table .= &ui_link("view.cgi". $table .= "&nbsp;&nbsp;".&ui_link("view.cgi".
&html_escape($files{$i,'path'}), $text{'list_view'}); &html_escape($files{$i,'path'}),
$text{'list_view'});
} }
$table .= "</td></tr></table>";
push(@cols, $table); push(@cols, $table);
push(@cols, &html_escape($files{$i,'user'})); push(@cols, &html_escape($files{$i,'user'}));
push(@cols, &html_escape($files{$i,'group'})); push(@cols, &html_escape($files{$i,'group'}));