Sha256: 6904255337d87101e2d8793c0146c65003d7ad2c1ec9f0d65bdbd57dc5eadef9

Contents?: true

Size: 1.23 KB

Versions: 31

Compression:

Stored size: 1.23 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
-%>
<%= content_tag :tr, list_row_attributes(tr_class, row_id, data_refresh) do %>
  <% 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 -%>
    <% attrs = column_attributes(column, record).merge(:class => column_class(column, column_value, record)) %>

    <%= content_tag :td, authorized ? render_list_column(column_value, column, record) : column_value, attrs %>
  <% end -%>

  <% unless grouped_search? -%>
  <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>
  <% end -%>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
active_scaffold-3.7.11 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.7.10 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.7.8 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.7.7 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.7.6 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.7.5 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.7.2 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.7.1 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.7.0 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.20 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.19 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.17 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.15 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.14 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.13 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.12 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.11.1 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.11 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.10 app/views/active_scaffold_overrides/_list_record.html.erb
active_scaffold-3.6.9 app/views/active_scaffold_overrides/_list_record.html.erb