% params = request.params.except(:action, :controller, :model_name) %> <% query = params[:query] %> <% filter = params[:filter] %> <% sort = params[:sort] %> <% sort_reverse = params[:sort_reverse] %> <% path_method = params[:id] ? "history_show_path" : "history_index_path" %> <%= form_tag("", method: "get", class: "search form-inline") do %>
<%= column[:link_text] %> | <% end %>|||||
---|---|---|---|---|---|
<%= l(object.created_at, format: :long, default: l(object.created_at, format: :long)) %> | <% end %><%= object.username %> | <% if @general %> <% if o = @abstract_model.get(object.item) %> <% label = o.send(@abstract_model.config.object_label_method) %> <% if show_action = action(:show, @abstract_model, o) %><%= link_to(label, url_for(action: show_action.action_name, model_name: @abstract_model.to_param, id: o.id)) %> | <% else %><%= label %> | <% end %> <% else %><%= "#{@abstract_model.config.label} ##{object.item}" %> | <% end %> <% end %><%= object.message.in?(['delete', 'new']) ? t("admin.actions.#{object.message}.done").capitalize : object.message %> |