Sha256: 518f81ddc122e7dfcc0d180f72375c1156d0674e1a277a160d27ac9d6ad08e67
Contents?: true
Size: 1.67 KB
Versions: 96
Compression:
Stored size: 1.67 KB
Contents
<% record = list_record if list_record # compat with render :partial :collection dont_show_calculations ||= false tr_class = cycle("", "even-record") tr_class += " #{list_row_class(record)}" if respond_to? :list_row_class url_options = params_for(:action => :list, :id => record.id) # AST show_actions_column show_actions_column = active_scaffold_config.show_actions_column and active_scaffold_config.action_links.any? {|link| link.type == :record } -%> <tr class="record <%= tr_class %>" id="<%= element_row_id(:action => :list, :id => record.id) %>"> <%# AST Begin -%> <%= render :partial => 'list_record_actions', :locals => {:record => record, :url_options => url_options} if active_scaffold_config.left_handed and show_actions_column %> <%= render :partial => 'list_record_columns', :locals => {:record => record, :url_options => url_options} %> <%= render :partial => 'list_record_actions', :locals => {:record => record, :url_options => url_options} if !active_scaffold_config.left_handed and show_actions_column %> <%# AST End -%> </tr> <% target_id = element_row_id(:action => :list, :id => record.id) -%> <script type="text/javascript"> //<![CDATA[ new ActiveScaffold.Actions.Record( $$('#<%= target_id -%> a.action'), $('<%= target_id -%>'), $('<%= loading_indicator_id(:action => :record, :id => record.id) -%>'), {refresh_url: '<%= url_for params_for(:action => :row, :id => record.id, :_method => :get, :escape => false) -%>'} ); <%= update_page do |page| page.replace active_scaffold_calculations_id, :partial => 'list_calculations' end if not dont_show_calculations and active_scaffold_config.list.columns.any? {|c| c.calculation?} %> //]]> </script>
Version data entries
96 entries across 96 versions & 1 rubygems