Sha256: fb6a58cee5a9ca7b5e7bfec17b14bbcac77fbb164e25ca329f23df0f948091da
Contents?: true
Size: 1.16 KB
Versions: 5
Compression:
Stored size: 1.16 KB
Contents
<% column_count ||= begin config = if nested? and (nested.singular_association? || action_name == 'index') active_scaffold_config_for(nested.parent_model) else active_scaffold_config end # increment in 1 for self-associations, parent_model config will have constraints too config.list.columns.count + 1 + (config == active_scaffold_config && action_name == 'index' ? 1 : 0) end %> <%# nested_id, allows us to remove a nested scaffold programmatically %> <tr class="inline-adapter" id="<%= element_row_id :action => :nested %>"> <td colspan="<%= column_count %>" class="inline-adapter-cell"> <div class="<%= "#{params[:action]}-view" if params[:action] %> <%= "#{nested? ? nested.name : id_from_controller(params[:controller])}-view" %> view"> <%= link_to(as_(:close), '', :class => 'inline-adapter-close as_cancel', :remote => true, :title => as_(:close)) -%> <%= payload -%> </div> </td> </tr> <%= javascript_tag("var action_link = ActiveScaffold.ActionLink.get('#{element_row_id(:action => :nested)}'); if (action_link) action_link.update_flash_messages('#{escape_javascript(render(:partial => 'messages').strip)}');") %>
Version data entries
5 entries across 5 versions & 1 rubygems