From b860b18711e6f3e5a974b93567ff4fa0aef7cf7c Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Fri, 23 Oct 2015 22:04:32 -0500 Subject: [PATCH] cleanup --- indefero/src/IDF/Views/Download.php | 2 +- indefero/src/IDF/Views/User.php | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/indefero/src/IDF/Views/Download.php b/indefero/src/IDF/Views/Download.php index 7f9216b..902a4bd 100644 --- a/indefero/src/IDF/Views/Download.php +++ b/indefero/src/IDF/Views/Download.php @@ -66,7 +66,7 @@ class IDF_Views_Download array('summary', 'IDF_Views_Download_SummaryAndLabels', __('Summary')), array('filesize', 'IDF_Views_Download_Size', __('Size')), array('creation_dtime', 'Pluf_Paginator_DateYMD', __('Uploaded')), - array('downloads', 'Pluf_Paginator_DisplayVal', __('Downloads')), + array('downloads', 'Pluf_Paginator_DisplayVal', __('Downloads')), ); $pag->configure($list_display, array(), array('file', 'filesize', 'creation_dtime')); $pag->items_per_page = 10; diff --git a/indefero/src/IDF/Views/User.php b/indefero/src/IDF/Views/User.php index 64d4928..f7f1469 100644 --- a/indefero/src/IDF/Views/User.php +++ b/indefero/src/IDF/Views/User.php @@ -317,13 +317,9 @@ class IDF_Views_User } } } - //$projectstats = IDF_Views::getProjectsStatistics($pubprojects); + $projectstats = IDF_Views::getProjectsStatisticsByUser($user->id); $projectstats["proj_count"] = count($pubprojects); - //print_r($projectstats); - //echo $privprojects; - - //$pubprojects = Pluf::factory("IDF_Project")->getList(array('filter' => "")); $pag = new Pluf_Paginator(new IDF_Issue()); $pag->model_view = "project_find_private"; @@ -335,8 +331,6 @@ class IDF_Views_User $pag->sort_order = array('modif_dtime', 'ASC'); // will be reverted $pag->sort_reverse_order = array('modif_dtime'); $list_display = array( - //'id' => __('Id'), - //array('project', 'Pluf_Paginator_FkToString', __('Project')), array('project', 'IDF_Views_ProjectLink', __('Project')), array('summary', 'IDF_Views_IssueSummaryAndLabels', __('Summary')), array('status', 'IDF_Views_Issue_ShowStatus', __('Status')),