diff options
author | Simon Rettberg | 2019-01-17 14:50:46 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-01-17 14:50:46 +0100 |
commit | 722c64c2cacfcbb4ee639887101650069f4ba917 (patch) | |
tree | b6d952ea4684fafaf5b5303d0786847725ebd8d7 /modules-available/serversetup-bwlp/page.inc.php | |
parent | [serversetup-bwlp] Make ipxe trigger a hook for modularity (diff) | |
download | slx-admin-722c64c2cacfcbb4ee639887101650069f4ba917.tar.gz slx-admin-722c64c2cacfcbb4ee639887101650069f4ba917.tar.xz slx-admin-722c64c2cacfcbb4ee639887101650069f4ba917.zip |
[serversetup-bwlp] More detailed download page (size, date)
Diffstat (limited to 'modules-available/serversetup-bwlp/page.inc.php')
-rw-r--r-- | modules-available/serversetup-bwlp/page.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp/page.inc.php b/modules-available/serversetup-bwlp/page.inc.php index b9732d2b..a71e56ef 100644 --- a/modules-available/serversetup-bwlp/page.inc.php +++ b/modules-available/serversetup-bwlp/page.inc.php @@ -208,6 +208,8 @@ class Page_ServerSetup extends Page asort($features); $files[] = [ 'name' => $base, + 'size' => Util::readableFileSize(filesize($file)), + 'modified' => Util::prettyTime(filemtime($file)), 'class' => substr($base, -4) === '.usb' ? 'slx-bold' : '', 'features' => implode(', ', array_keys($features)), ]; |