mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-31 23:38:20 -04:00
Updates fallback.
This commit is contained in:
parent
580653a1ad
commit
20c16d2a76
2 changed files with 22 additions and 24 deletions
|
@ -16,31 +16,15 @@
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
padding-bottom: 18px;
|
padding-bottom: 18px;
|
||||||
|
color: #555;
|
||||||
a, a:visited {
|
font-weight: normal;
|
||||||
color: #555;
|
opacity: 0.4;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
td {
|
td {
|
||||||
border-bottom: 1px solid @col-border;
|
border-bottom: 1px solid @col-border;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-size: 16px;
|
font-size: 15px;
|
||||||
|
|
||||||
a, a:active, a:visited {
|
a, a:active, a:visited {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -207,20 +207,34 @@ class App {
|
||||||
uasort($items, array("Item", "cmp"));
|
uasort($items, array("Item", "cmp"));
|
||||||
|
|
||||||
$html = "<table>";
|
$html = "<table>";
|
||||||
$html .= "<tr><th></th><th><span>Name</span></th><th><span>Last modified</span></th><th><span>Size</span></th></tr>";
|
|
||||||
|
$html .= "<tr>";
|
||||||
|
$html .= "<th></th>";
|
||||||
|
$html .= "<th><span>Name</span></th>";
|
||||||
|
$html .= "<th><span>Last modified</span></th>";
|
||||||
|
$html .= "<th><span>Size</span></th>";
|
||||||
|
$html .= "</tr>";
|
||||||
|
|
||||||
if ($folder->get_parent($cache)) {
|
if ($folder->get_parent($cache)) {
|
||||||
$html .= "<tr><td><img src=\"" . $this->app_abs_href . "client/icons/96/folder-parent.png\" alt=\"folder-parent\"/></td><td><a href=\"..\">Parent Directory</a></td><td></td><td></td></tr>";
|
$html .= "<tr>";
|
||||||
|
$html .= "<td><img src='" . $this->app_abs_href . "client/icons/96/folder-parent.png' alt='folder-parent'/></td>";
|
||||||
|
$html .= "<td><a href='..'>Parent Directory</a></td>";
|
||||||
|
$html .= "<td></td>";
|
||||||
|
$html .= "<td></td>";
|
||||||
|
$html .= "</tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
$type = $item->is_folder ? "folder" : "default";
|
$type = $item->is_folder ? "folder" : "default";
|
||||||
|
|
||||||
$html .= "<tr>";
|
$html .= "<tr>";
|
||||||
$html .= "<td><img src=\"" . $this->app_abs_href . "client/icons/96/" . $type . ".png\" alt=\"" . $type . "\"/></td>";
|
$html .= "<td><img src='" . $this->app_abs_href . "client/icons/96/" . $type . ".png' alt='" . $type . "'/></td>";
|
||||||
$html .= "<td><a href=\"" . $item->abs_href . "\">" . basename($item->abs_path) . "</a></td>";
|
$html .= "<td><a href='" . $item->abs_href . "'>" . basename($item->abs_path) . "</a></td>";
|
||||||
$html .= "<td>" . date("Y-m-d H:i", $item->date) . "</td>";
|
$html .= "<td>" . date("Y-m-d H:i", $item->date) . "</td>";
|
||||||
$html .= "<td>" . ($item->size !== null ? intval($item->size / 1000) . " KB" : "" ) . "</td>";
|
$html .= "<td>" . ($item->size !== null ? intval($item->size / 1000) . " KB" : "" ) . "</td>";
|
||||||
$html .= "</tr>";
|
$html .= "</tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$html .= "</table>";
|
$html .= "</table>";
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue