Sha256: 08fd15a846fcab77c3a57e98563b1fb2524b36f1f5d5a5f7be8e4cf51c539533

Contents?: true

Size: 1.2 KB

Versions: 17

Compression:

Stored size: 1.2 KB

Contents

<%
record = list_record if local_assigns[:list_record] # compat with render :partial :collection
columns ||= list_columns
row_id ||= element_row_id(:action => :list, :id => record.id)
tr_class = cycle("", "even-record") + ' ' + list_row_class(record)
action_links ||= active_scaffold_config.action_links.member
data_refresh ||= record.to_param
-%>
<tr class="record <%= tr_class %>" id="<%= row_id %>" data-refresh="<%= data_refresh %>">
  <% columns.each do |column| %>
    <% authorized = record.authorized_for?(:crud_type => :read, :column => column.name) -%>
    <% column_value = authorized ? get_column_value(record, column) : 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>
    <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>
</tr>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
active_scaffold-3.4.27 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.26 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.25 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.24 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.23 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.22 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.21.1 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.21 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.20 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.19 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.18.1 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.18 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.17 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.16 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.14 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.13 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.4.12 app/views/active_scaffold_overrides/_list_record.html.erb