srchub

srchub Commit Details


Date:2016-03-26 17:08:31 (8 years 8 months ago)
Author:Natalie Adams
Branch:master
Commit:31735c40489be6d23369ded6c725abc21283bd99
Parents: 99137ee2338f2948950eaab6a8c7e6bcbee52df9
Message:Issue 147: Add repository type to forge management project list

Changes:

File differences

indefero/src/IDF/Project.php
140140
141141
142142
143
144
145
143
144
145
146
146147
147
148
149
148150
149151
150152
$thisTable = $this->_con->pfx.'idf_projects';
$this->_a['views'] = array(
'repo_size' => [
'join' => "INNER JOIN $confTable ON $thisTable.id = $confTable.project",
'select' => $this->getSelect() . ', CAST(vdesc as UNSIGNED) as vdesc',
'where' => 'vkey = "repository_size"',
'join' => "INNER JOIN $confTable s ON $thisTable.id = s.project " .
"INNER JOIN $confTable t ON $thisTable.id = t.project ",
'select' => $this->getSelect() . ', CAST(s.vdesc as UNSIGNED) as size, t.vdesc as scm',
'where' => 's.vkey = "repository_size" AND t.vkey = "scm"',
'props' => array(
'vdesc' => 'vdesc',
'size' => 'size',
'scm' => 'scm'
),
],
'join_activities_and_tags' =>
indefero/src/IDF/Views/Admin.php
8585
8686
8787
88
88
89
8990
9091
9192
92
93
93
94
9495
9596
9697
......
663664
664665
665666
666
667
668
669
670
671
672
667673
668674
669675
$list_display = array(
'shortname' => __('Short Name'),
'name' => __('Name'),
'vdesc' => ["vdesc", "IDF_Views_Admin_projectSize2", __('Repository Size')],
'scm' => ["scm", "IDF_Views_Admin_projectSCM", __('Type')],
'size' => ["size", "IDF_Views_Admin_projectSize2", __('Repository Size')]
);
$pag->configure($list_display, array('shortname', 'shortname'),
array('shortname', 'name', 'vdesc' ));
$pag->extra_classes = array('', '', 'right');
array('shortname', 'name', 'scm', 'size' ));
$pag->extra_classes = array('', '', '', 'right');
$pag->items_per_page = 25;
$pag->no_results_text = __('No projects were found.');
$pag->setFromRequest($request);
function IDF_Views_Admin_projectSize2($field, $project)
{
return Pluf_Utils::prettySize($project->vdesc);
return Pluf_Utils::prettySize($project->size);
}
function IDF_Views_Admin_projectSCM($field, $project)
{
return $project->getConf()->getVal("scm");
}
/**
pluf/src/Pluf/Paginator.php
289289
290290
291291
292
292
293293
294294
295295
}
}
}
//print_r($this->list_display);
if (is_array($search_fields)) {
$this->search_fields = $search_fields;
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06181s using 20 queries.