Sha256: 85bb25f43c4d5f050268f0d1296b3e8f3c87210044564eb00cbb495dd025b09e
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
<%% current_sort = session[params[:scaffold_id]][:sort] %> <%% current_sort_direction = session[params[:scaffold_id]][:sort_direction] %> <%% for column in <%= model_name %>.content_columns %> <%% sort_direction = current_sort == column.name && current_sort_direction == "asc" ? "desc" : "asc" %> <%% sort_params = params.merge(:controller => '<%= controller_file_path %>', :action => 'component_update', :sort => column.name, :sort_direction => sort_direction, :page => 1) %> <th id="<%%= scaffold_column_header_id(sort_params.merge(:column_name => column.name)) %>" <%%= "class=\"sorted #{current_sort_direction}\"" if column.name == current_sort %>> <%%= link_to_remote column.human_name, { :url => sort_params, :loading => "Element.addClassName('#{scaffold_column_header_id(sort_params.merge(:column_name => column.name))}','loading');", :update => scaffold_content_id(sort_params) }, { :href => url_for(sort_params) } %></th> <%% end %> <th></th>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ajax_scaffold_generator-3.0.4 | templates/partial_column_headings.rhtml |