<%
page_path = if (request.post? || request.put?) && params[:page_path]
params[:page_path]
else
view_name.sub(Dryml::EMPTY_PAGE, params[:action] || '')
end
controller, action = page_path.split('/')
%>
<% col = sort_columns[scope.field_path] || scope.field_path
sort = sort_field == col && sort_direction == 'asc' ?
"-#{col}" : col
sort_url = url_for(params.merge(:sort => sort, :controller => controller, :action => action) - [:page])
col_heading_name = this.member_class.try.view_hints.try.field_name(scope.field_name) || scope.field_name.titleize %>
<%= col_heading_name %>
↑
↓
|
|
No to display