Sha256: 464a12a9e8f3fdf2a9f44c3afe3f0b05f74f32cda21c5e564480918f4dae73dd
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
<% record = list_record if list_record # compat with render :partial :collection columns ||= list_columns tr_class = cycle("", "even-record") + ' ' + list_row_class(record) action_links ||= active_scaffold_config.action_links.member data_refresh ||= url_for(params_for(:action => :row, :id => '--ID--', :_method => :get)) -%> <tr class="record <%= tr_class %>" id="<%= element_row_id(:action => :list, :id => record.id) %>" data-refresh="<%= data_refresh.sub('--ID--', record.id.to_s).html_safe %>"> <% columns.each do |column| %> <% authorized = record.authorized_for?(:crud_type => :read, :column => column.name) -%> <% column_value = authorized ? get_column_value(record, column) : active_scaffold_config.list.empty_field_text -%> <%= content_tag :td, column_attributes(column, record).merge(:class => column_class(column, column_value, record)) do %> <%= authorized ? render_list_column(column_value, column, record) : column_value %> <% end %> <% end -%> <td class="actions"><table cellpadding="0" cellspacing="0"> <tr> <td class="indicator-container"> <%= loading_indicator_tag(:action => :record, :id => record.id) %> </td> <%= display_action_links(action_links, record, :level_0_tag => :td, :for => record.persisted? ? record : record.class) %> </tr> </table></td> <%= render_nested_view(action_links, record) unless @nested_auto_open.nil? %> </tr>
Version data entries
3 entries across 3 versions & 1 rubygems