Sha256: 3cb557fe068bffca392ea163d3c519bb0a920ddd31f44a61ce0f7cc5a62faf35
Contents?: true
Size: 904 Bytes
Versions: 3
Compression:
Stored size: 904 Bytes
Contents
%table.table.table-condensed.table-striped %thead %tr %th.shrink.user= t("admin.table_headers.username") %th.shrink.items= t("admin.table_headers.items") %th.changes= t("admin.table_headers.changes") %tbody - @history.each do |t| - abstract_model = RailsAdmin.config(t.table).try(:abstract_model) %tr %td= t.try :username - if o = abstract_model.try(:get, t.item) - label = o.send(abstract_model.config.object_label_method) - if show_action = action(:show, abstract_model, o) %td= link_to(label, url_for(:action => show_action.action_name, :model_name => abstract_model.to_param, :id => o.id), :class => 'pjax') - else %td= label - else %td= "#{t.table} ##{t.item}" %td= t.message.in?(['delete', 'new']) ? t("admin.actions.#{t.message}.done").capitalize : t.message
Version data entries
3 entries across 3 versions & 1 rubygems