incubator-alois-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fla...@apache.org
Subject svn commit: r1040566 - /incubator/alois/trunk/rails/app/views/survey/_data_table.rhtml
Date Tue, 30 Nov 2010 15:06:00 GMT
Author: flavio
Date: Tue Nov 30 15:05:59 2010
New Revision: 1040566

URL: http://svn.apache.org/viewvc?rev=1040566&view=rev
Log:
Do not display chart icons for primary key

Modified:
    incubator/alois/trunk/rails/app/views/survey/_data_table.rhtml

Modified: incubator/alois/trunk/rails/app/views/survey/_data_table.rhtml
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/app/views/survey/_data_table.rhtml?rev=1040566&r1=1040565&r2=1040566&view=diff
==============================================================================
--- incubator/alois/trunk/rails/app/views/survey/_data_table.rhtml (original)
+++ incubator/alois/trunk/rails/app/views/survey/_data_table.rhtml Tue Nov 30 15:05:59 2010
@@ -11,9 +11,11 @@
     <div <%= show_hide_element(column.name) %> style="right:0px;top:0px;">
 			<%= link_to_remote image_tag("up.png"), :update => 'survey_table', :before =>
"table_reload()", :url => { :action => 'list_inline', :order => "#{column.name}",
:state_id => @state_id} %>
 				<%= link_to_remote image_tag("down.png"), :update => 'survey_table', :before =>
"table_reload()", :url =>{ :action => 'list_inline', :order => "#{column.name} DESC",
:state_id => @state_id} %>
+<% if column.name != "id" %>
 				<%=link_to image_tag("pie-chart.png"), :action => 'chart', :chart_type => :pie,
"chart[column1]" => column.name, "chart[column2]" => "", "chart[aggregation_column]"=>"*",
"chart[aggregation_function]" => "COUNT",  :state_id => @state_id %>
 				<%=link_to image_tag("bar-chart.png"), :action => 'chart', :chart_type => :bar,
"chart[column1]" => column.name, "chart[column2]" => "", "chart[aggregation_column]"=>"*",
"chart[aggregation_function]" => "COUNT",  :state_id => @state_id %>
 				<% if Chart.column_supports_type?(column,"line") then %><%= link_to image_tag("line-chart.png"),
:action => 'chart', :chart_type => :line, "chart[column1]" => column.name, "chart[column2]"
=> "", "chart[aggregation_column]"=>"*", "chart[aggregation_function]" => "COUNT",
:state_id => @state_id %><% end %>
+<% end %>
 			<span>
 		</div>
 	</th>



Mime
View raw message