1<?php
2# MantisBT - A PHP based bugtracking system
3
4# MantisBT is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 2 of the License, or
7# (at your option) any later version.
8#
9# MantisBT is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
16
17/**
18 * This page displays "improved" charts on priorities : bars, 3Dpie and a mix priorities per status
19 *
20 * @package MantisBT
21 * @copyright Copyright 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
22 * @copyright Copyright 2002  MantisBT Team - mantisbt-dev@lists.sourceforge.net
23 * @link http://www.mantisbt.org
24 */
25
26access_ensure_project_level( config_get( 'view_summary_threshold' ) );
27
28layout_page_header();
29layout_page_begin( 'summary_page.php' );
30
31$t_filter = summary_get_filter();
32print_summary_menu( 'developer_graph.php', $t_filter );
33
34# Submenu
35$t_mantisgraph = plugin_get();
36$t_mantisgraph->print_submenu();
37?>
38
39<div class="col-md-12 col-xs-12">
40	<div class="space-10"></div>
41	<div class="widget-box widget-color-blue2">
42		<div class="widget-header widget-header-small">
43			<h4 class="widget-title lighter">
44				<?php print_icon( 'fa-bar-chart-o', 'ace-icon' ); ?>
45				<?php echo plugin_lang_get( 'graph_developer_title' ) ?>
46			</h4>
47		</div>
48
49		<div class="col-md-6 col-xs-12" style="padding: 20px;">
50			<div class="widget-header widget-header-small">
51				<h4 class="widget-title lighter">
52					<?php print_icon( 'fa-bar-chart', 'ace-icon' ); ?>
53					<?php echo plugin_lang_get('graph_topdev') ?>
54				</h4>
55			</div>
56
57<?php
58			$t_metrics = create_developer_resolved_summary( $t_filter );
59			graph_bar( $t_metrics );
60?>
61		</div>
62
63		<div class="col-md-6 col-xs-12" style="padding: 20px;">
64			<div class="widget-header widget-header-small">
65				<h4 class="widget-title lighter">
66					<?php print_icon( 'fa-bar-chart', 'ace-icon' ); ?>
67					<?php echo plugin_lang_get('graph_opendev') ?>
68				</h4>
69			</div>
70
71<?php
72			$t_metrics = create_developer_open_summary( $t_filter );
73			graph_bar( $t_metrics );
74?>
75		</div>
76	</div>
77</div>
78
79<?php
80layout_page_end();
81