From 20c16d2a76a1c574dea315d61f35279ac9f61499 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Fri, 6 Sep 2013 18:58:40 +0200 Subject: [PATCH] Updates fallback. --- src/_h5ai/client/css/inc/fallback.less | 24 ++++-------------------- src/_h5ai/server/php/inc/App.php | 22 ++++++++++++++++++---- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/src/_h5ai/client/css/inc/fallback.less b/src/_h5ai/client/css/inc/fallback.less index f73ef3eb..b779222c 100644 --- a/src/_h5ai/client/css/inc/fallback.less +++ b/src/_h5ai/client/css/inc/fallback.less @@ -16,31 +16,15 @@ } th { padding-bottom: 18px; - - a, a:visited { - color: #555; - font-weight: normal; - text-decoration: none; - cursor: pointer; - opacity: 0.4; - .transition(all 0.2s ease-in-out); - - &:hover { - color: #555; - opacity: 0.9; - } - } - span { - color: #555; - font-weight: normal; - opacity: 0.4; - } + color: #555; + font-weight: normal; + opacity: 0.4; } td { border-bottom: 1px solid @col-border; overflow: hidden; white-space: nowrap; - font-size: 16px; + font-size: 15px; a, a:active, a:visited { display: block; diff --git a/src/_h5ai/server/php/inc/App.php b/src/_h5ai/server/php/inc/App.php index c353f3c9..eef93379 100644 --- a/src/_h5ai/server/php/inc/App.php +++ b/src/_h5ai/server/php/inc/App.php @@ -207,20 +207,34 @@ class App { uasort($items, array("Item", "cmp")); $html = ""; - $html .= ""; + + $html .= ""; + $html .= ""; + $html .= ""; + $html .= ""; + $html .= ""; + $html .= ""; + if ($folder->get_parent($cache)) { - $html .= ""; + $html .= ""; + $html .= ""; + $html .= ""; + $html .= ""; + $html .= ""; + $html .= ""; } + foreach ($items as $item) { $type = $item->is_folder ? "folder" : "default"; $html .= ""; - $html .= ""; - $html .= ""; + $html .= ""; + $html .= ""; $html .= ""; $html .= ""; $html .= ""; } + $html .= "
NameLast modifiedSize
NameLast modifiedSize
app_abs_href . "client/icons/96/folder-parent.png\" alt=\"folder-parent\"/>Parent Directory
folder-parentParent Directory
app_abs_href . "client/icons/96/" . $type . ".png\" alt=\"" . $type . "\"/>abs_href . "\">" . basename($item->abs_path) . "" . $type . "" . basename($item->abs_path) . "" . date("Y-m-d H:i", $item->date) . "" . ($item->size !== null ? intval($item->size / 1000) . " KB" : "" ) . "
"; return $html;