From fc63882fe2bcbacd1ec880c9f689da3a334c51cb Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Sat, 16 Apr 2011 23:07:18 +0200 Subject: more layout fixes --- admin/apps.php | 8 +++++--- admin/css/apps.css | 42 ++++++++++++++++++++++++++++++++++++++++++ admin/templates/apps.php | 6 ++---- 3 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 admin/css/apps.css (limited to 'admin') diff --git a/admin/apps.php b/admin/apps.php index b433fe0875b..bff3089dc5e 100644 --- a/admin/apps.php +++ b/admin/apps.php @@ -29,8 +29,7 @@ if( !OC_USER::isLoggedIn() || !OC_GROUP::inGroup( $_SESSION['user_id'], 'admin' } // Load the files we need -//OC_UTIL::addStyle( "", "files" ); -//OC_UTIL::addScript( "", "files" ); +OC_UTIL::addStyle( "admin", "apps" ); if(isset($_GET['id'])) $id=$_GET['id']; else $id=0; @@ -41,7 +40,9 @@ $categories=OC_OCSCLIENT::getCategories(); if($id==0) { if($cat==0){ - $apps=OC_OCSCLIENT::getApplications($categories); + $numcats=array(); + foreach($categories as $key=>$value) $numcats[]=$key; + $apps=OC_OCSCLIENT::getApplications($numcats); }else{ $apps=OC_OCSCLIENT::getApplications($cat); } @@ -59,6 +60,7 @@ if($id==0) { $app=OC_OCSCLIENT::getApplication($id); $tmpl = new OC_TEMPLATE( "admin", "app", "admin" ); + $tmpl->assign( "categories", $categories ); $tmpl->assign( "app", $app ); $tmpl->printPage(); unset($tmpl); diff --git a/admin/css/apps.css b/admin/css/apps.css new file mode 100644 index 00000000000..68bd9cf63d3 --- /dev/null +++ b/admin/css/apps.css @@ -0,0 +1,42 @@ +/* APPS TABLE */ + +table td.date +{ + width: 5em; + padding: 0.5em 1em; + text-align: right; +} + +.preview +{ + padding: 3px; + text-align: left; +} + +table td.date +{ + width: 11em; + color: #555555; +} + +table td.selection, table th.selection, table td.fileaction +{ + width: 2em; + text-align: center; +} + +table td.name a +{ + padding: 6px; + text-decoration: none; + color: #555555; +} + +.type +{ + padding: 6px; + text-decoration: none; + color: #888888; + font-size: 0.8em; +} + diff --git a/admin/templates/apps.php b/admin/templates/apps.php index 2f584775815..36a7cd53029 100644 --- a/admin/templates/apps.php +++ b/admin/templates/apps.php @@ -12,16 +12,14 @@ Name Modified - - "") { echo(''); } ?> - + "") { echo(''); } ?> + " title="">
'.$app['typename'].''); ?> - + -- cgit v1.2.3