From b1d0de95a9407662933c1d662834410fe927423c Mon Sep 17 00:00:00 2001 From: kondou Date: Tue, 2 Jul 2013 04:28:52 +0200 Subject: [PATCH] Show a summary as the last filelist entry Fix #993 --- apps/files/css/files.css | 8 ++++++ apps/files/templates/part.list.php | 41 ++++++++++++++++++++++++++++-- 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/apps/files/css/files.css b/apps/files/css/files.css index 108dcd741c..f2ca1065ec 100644 --- a/apps/files/css/files.css +++ b/apps/files/css/files.css @@ -159,6 +159,14 @@ a.action>img { max-height:16px; max-width:16px; vertical-align:text-bottom; } display:inline; } +.summary { + opacity: .5; +} + +.summary .info { + margin-left: 3em; +} + #scanning-message{ top:40%; left:40%; position:absolute; display:none; } div.crumb a{ padding:0.9em 0 0.7em 0; color:#555; } diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 1e94275dcb..05fbb89250 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -1,6 +1,14 @@ - + - + + + + t('directory')); + } else { + p($l->t('directories')); + } + } + if ($totaldirs !== 0 && $totalfiles !== 0) { + p(' & '); + } + if ($totalfiles !== 0) { + p($totalfiles.' '); + if ($totalfiles === 1) { + p($l->t('file')); + } else { + p($l->t('files')); + } + } ?> + + + + + + +