[Rt-commit] rt branch, 4.0/saved-chart-show-chart-only, created. rt-4.0.22-18-gd775cfb
? sunnavy
sunnavy at bestpractical.com
Wed Nov 12 12:47:05 EST 2014
The branch, 4.0/saved-chart-show-chart-only has been created
at d775cfbaf9b0254b9406e4e04f480eb5f01b7bc2 (commit)
- Log -----------------------------------------------------------------
commit d775cfbaf9b0254b9406e4e04f480eb5f01b7bc2
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Nov 13 01:11:34 2014 +0800
"pie only" and "bar only" chart styles to hide query and table
sometimes users want charts only(e.g. when they are added to a dashboard)
diff --git a/share/html/NoAuth/css/aileron/ticket-lists.css b/share/html/NoAuth/css/aileron/ticket-lists.css
index 4ec9ae7..e5a6136 100644
--- a/share/html/NoAuth/css/aileron/ticket-lists.css
+++ b/share/html/NoAuth/css/aileron/ticket-lists.css
@@ -224,6 +224,7 @@ padding-bottom: 1em;
.chart-meta {
padding-top: 2em;
border-top: 1px solid #ccc;
+ clear: both;
}
.chart-meta .chart-type {
diff --git a/share/html/NoAuth/css/ballard/ticket-lists.css b/share/html/NoAuth/css/ballard/ticket-lists.css
index ba05a07..78087f1 100644
--- a/share/html/NoAuth/css/ballard/ticket-lists.css
+++ b/share/html/NoAuth/css/ballard/ticket-lists.css
@@ -223,6 +223,7 @@ padding-bottom: 1em;
.chart-meta {
padding-top: 2em;
border-top: 1px solid #ccc;
+ clear: both;
}
.chart-meta .chart-type {
diff --git a/share/html/NoAuth/css/web2/ticket-lists.css b/share/html/NoAuth/css/web2/ticket-lists.css
index ba05a07..78087f1 100644
--- a/share/html/NoAuth/css/web2/ticket-lists.css
+++ b/share/html/NoAuth/css/web2/ticket-lists.css
@@ -223,6 +223,7 @@ padding-bottom: 1em;
.chart-meta {
padding-top: 2em;
border-top: 1px solid #ccc;
+ clear: both;
}
.chart-meta .chart-type {
diff --git a/share/html/Search/Chart b/share/html/Search/Chart
index 7256106..d1c60e1 100644
--- a/share/html/Search/Chart
+++ b/share/html/Search/Chart
@@ -55,7 +55,7 @@ my $chart_class;
use GD;
use GD::Text;
-if ($ChartStyle eq 'pie') {
+if ($ChartStyle =~ /pie/) {
require GD::Graph::pie;
$chart_class = "GD::Graph::pie";
} else {
diff --git a/share/html/Search/Elements/Chart b/share/html/Search/Elements/Chart
index f0d1e4a..f22eff2 100644
--- a/share/html/Search/Elements/Chart
+++ b/share/html/Search/Elements/Chart
@@ -100,6 +100,7 @@ my ($i,$total);
<img src="<%RT->Config->Get('WebPath')%>/Search/Chart?<%$query_string|n%>" />
% }
</span>
+% if ( $ChartStyle !~ / only$/ ) {
<table class="collection-as-table chart">
<tr>
<th class="collection-as-table"><% loc($tix->Label($PrimaryGroupBy)) %>
@@ -150,4 +151,5 @@ my ($i,$total);
</table>
<div class="query"><span class="label"><% loc('Query') %>:</span><span class="value"><% $Query %></span></div>
+% }
</div>
diff --git a/share/html/Search/Elements/SelectChartType b/share/html/Search/Elements/SelectChartType
index 1e8f2ec..ef582c1 100644
--- a/share/html/Search/Elements/SelectChartType
+++ b/share/html/Search/Elements/SelectChartType
@@ -50,9 +50,11 @@ $Name => 'ChartType'
$Default => 'bar'
</%args>
<select id="<%$Name%>" name="<%$Name%>">
-% foreach my $option (qw(bar pie)) {
+% foreach my $option ('bar', 'bar only', 'pie', 'pie only') {
% # 'bar' # loc
+% # 'bar only' # loc
% # 'pie' # loc
+% # 'pie only' # loc
<option value="<%$option%>"<% $option eq $Default ? qq[ selected="selected"] : '' |n %>><%loc($option)%></option>
% }
</select>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list