Minor style correction in Browse table

This commit is contained in:
bergware
2017-09-02 09:27:08 +02:00
parent ea7067d3b4
commit c25b006b48
2 changed files with 3 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ Tag="navicon"
* all copies or substantial portions of the Software.
*/
?>
<style>.loc{text-align:left;white-space:nowrap}</style>
<script>
$(function(){
$.get('/webGui/include/Browse.php',{dir:"<?=addslashes(htmlspecialchars($dir))?>",path:"<?=$path?>",user:<?=strpos($dir,'/mnt/user')===0?1:0?>},function(data){

View File

@@ -79,7 +79,7 @@ foreach ($list as $row) {
echo "<td><a href=\"".htmlspecialchars("/$path?dir=".urlencode_path(trim_slash($dir.'/'.$row['name'])))."\">".htmlspecialchars($row['name'])."</a></td>";
echo "<td data='0'>&lt;DIR&gt;</td>";
echo "<td data='{$row['time']}'>".my_time($row['time'],"%F {$display['time']}")."</td>";
echo "<td>{$row['disk']}</td>";
echo "<td class='loc'>{$row['disk']}</td>";
echo "</tr>";
$dirs++;
} else {
@@ -90,7 +90,7 @@ foreach ($list as $row) {
echo "<td><a href=\"".htmlspecialchars(urlencode_path(trim_slash($dir.'/'.$row['name'])))."\" class=\"".($tag?:'none')."\">".htmlspecialchars($row['name'])."</a></td>";
echo "<td data='{$row['size']}' class='$tag'>".my_scale($row['size'],$unit)." $unit</td>";
echo "<td data='{$row['time']}' class='$tag'>".my_time($row['time'],"%F {$display['time']}")."</td>";
echo "<td class='$tag'>{$row['disk']}</td>";
echo "<td class='loc $tag'>{$row['disk']}</td>";
echo "</tr>";
$files++;
$total+=$row['size'];