Nicolae Claudius
13 years ago
8 changed files with 33 additions and 10 deletions
@ -0,0 +1,16 @@
|
||||
<% 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 -%> |
||||
|
||||
<% if column.name == :records %> |
||||
<td class="<%= column_class(column, column_value, record) %>" > |
||||
<% column_value = 'Manage Records (0)' if column_value == '-' %> |
||||
<%= authorized ? render_list_column(column_value, column, record) : column_value %> |
||||
</td> |
||||
<% else %> |
||||
<td class="<%= column_class(column, column_value, record) %>" > |
||||
<%= authorized ? render_list_column(column_value, column, record) : column_value %> |
||||
</td> |
||||
<% end %> |
||||
|
||||
<% end -%> |
Loading…
Reference in new issue