Before Width: | Height: | Size: 454 B |
Before Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 586 B |
@ -1,23 +0,0 @@
|
||||
<%# meaningful names for empty columns instead tiny dash "-" %> |
||||
|
||||
<% 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 == :name %> |
||||
<td class="<%= column_class(column, column_value, record) %>" > |
||||
<% column_value = 'Manage All Records (0)' if column_value == '-' %> |
||||
<%= if authorized |
||||
link = render_list_column(column_value, column, record) |
||||
link_to link, "http://#{link}" |
||||
else |
||||
column_value |
||||
end %> |
||||
</td> |
||||
<% else %> |
||||
<td class="<%= column_class(column, column_value, record) %>" > |
||||
<%= authorized ? render_list_column(column_value, column, record) : column_value %> |
||||
</td> |
||||
<% end %> |
||||
|
||||
<% end -%> |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |