added max_top_projects and max_top_committers to the configuration file
This commit is contained in:
parent
1b5773b15f
commit
5100985eaf
@ -152,6 +152,16 @@ max_upload_size = "10000"
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
max_latest_projects = "10"
|
max_latest_projects = "10"
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Maximum number of projects to show in the top projects graph
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
max_top_projects = "10"
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Maximum number of committers to show in the top committers graph
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
max_top_committers = "10"
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Maximum number of projects to show
|
; Maximum number of projects to show
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
@ -104,9 +104,8 @@ class Site extends Controller
|
|||||||
$login['id'], $this->issuehelper->_get_open_status_array($this->lang), 0);
|
$login['id'], $this->issuehelper->_get_open_status_array($this->lang), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: make count_limit configurable instead of using 20
|
$commit_counts_per_project = $this->logs->countCodeCommitsPerProject ('', 0, CODEPOT_MAX_TOP_PROJECTS);
|
||||||
$commit_counts_per_project = $this->logs->countCodeCommitsPerProject ('', 0, 20);
|
$commit_counts_per_user = $this->logs->countCodeCommitsPerUser ('', 0, CODEPOT_MAX_TOP_COMMITTERS);
|
||||||
$commit_counts_per_user = $this->logs->countCodeCommitsPerUser ('', 0, 20);
|
|
||||||
|
|
||||||
if (/*$issues === FALSE || $recently_resolved_issues === FALSE ||*/
|
if (/*$issues === FALSE || $recently_resolved_issues === FALSE ||*/
|
||||||
$open_issue_counts_per_project === FALSE ||
|
$open_issue_counts_per_project === FALSE ||
|
||||||
|
@ -159,7 +159,7 @@ function show_commits_per_project()
|
|||||||
innerRadius: 0.1,
|
innerRadius: 0.1,
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
radius: 7/10,
|
radius: 0.9,
|
||||||
formatter: labelFormatter,
|
formatter: labelFormatter,
|
||||||
background: { opacity: 0.8 }
|
background: { opacity: 0.8 }
|
||||||
}
|
}
|
||||||
@ -201,7 +201,7 @@ function show_commits_per_user()
|
|||||||
innerRadius: 0.1,
|
innerRadius: 0.1,
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
radius: 7/10,
|
radius: 0.9,
|
||||||
formatter: labelFormatter,
|
formatter: labelFormatter,
|
||||||
background: { opacity: 0.8 }
|
background: { opacity: 0.8 }
|
||||||
}
|
}
|
||||||
@ -328,7 +328,7 @@ $this->load->view (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="site_home_result_commits_per_project_graph" style="overflow:auto;">
|
<div id="site_home_result_commits_per_project_graph" style="overflow:auto;">
|
||||||
<div id="site_home_commits_per_project" style="width:100%;height:200px;"></div>
|
<div id="site_home_commits_per_project" style="width:100%;height:250px;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@ -340,7 +340,7 @@ $this->load->view (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="site_home_result_commits_per_user_graph" style="overflow:auto;">
|
<div id="site_home_result_commits_per_user_graph" style="overflow:auto;">
|
||||||
<div id="site_home_commits_per_user" style="width:100%;height:200px;"></div>
|
<div id="site_home_commits_per_user" style="width:100%;height:250px;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -41,6 +41,8 @@ function load_ini ($file)
|
|||||||
array ('sysadmin_userids', 'string', ''),
|
array ('sysadmin_userids', 'string', ''),
|
||||||
array ('max_upload_size', 'string', '10000'), // kbytes
|
array ('max_upload_size', 'string', '10000'), // kbytes
|
||||||
array ('max_latest_projects', 'integer', 10),
|
array ('max_latest_projects', 'integer', 10),
|
||||||
|
array ('max_top_projects', 'integer', 10),
|
||||||
|
array ('max_top_committers', 'integer', 10),
|
||||||
array ('max_projects_per_page', 'integer', 50),
|
array ('max_projects_per_page', 'integer', 50),
|
||||||
array ('max_issues_per_page', 'integer', 50),
|
array ('max_issues_per_page', 'integer', 50),
|
||||||
array ('max_logs_per_page', 'integer', 50),
|
array ('max_logs_per_page', 'integer', 50),
|
||||||
|
Loading…
Reference in New Issue
Block a user