From af3aceaf0863f9a4c194925aa40ef97afd459f45 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 7 Jul 2011 02:41:22 +0200 Subject: [PATCH] show file extention in a lighter color --- files/css/files.css | 4 ++++ files/index.php | 4 ++++ files/templates/part.list.php | 10 +++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/files/css/files.css b/files/css/files.css index a3d098b9116..2e00a52d80b 100644 --- a/files/css/files.css +++ b/files/css/files.css @@ -111,3 +111,7 @@ table td.filename a display: inline-block; background-image:url('../img/drop-arrow.png'); } + +span.extention{ + color:#666; +} \ No newline at end of file diff --git a/files/index.php b/files/index.php index a163895131e..e06ab552632 100644 --- a/files/index.php +++ b/files/index.php @@ -47,6 +47,10 @@ $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : ''; $files = array(); foreach( OC_FILES::getdirectorycontent( $dir ) as $i ){ $i["date"] = OC_UTIL::formatDate($i["mtime"] ); + if($i['type']=='file'){ + $i['extention']=substr($i['name'],strrpos($i['name'],'.')); + $i['name']=substr($i['name'],0,strrpos($i['name'],'.')); + } if($i['directory']=='/'){ $i['directory']=''; } diff --git a/files/templates/part.list.php b/files/templates/part.list.php index c7028c3c88c..119b1bbd83d 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -3,7 +3,15 @@ $simple_size_color = 200-intval(pow($simple_file_size,3)); ?> - "; echo htmlspecialchars($file['name']); if($file['type'] == 'dir') echo ""; ?> + + + + + + + + + -- 2.39.5