Sha256: 993080c6576017b406c69541f5ca3dd2f3b1890b4150181cf611335bd6fdae2b
Contents?: true
Size: 898 Bytes
Versions: 34
Compression:
Stored size: 898 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.item") %th.changes= t("admin.table_headers.changes") %tbody - @history.each do |t| - abstract_model = RailsAdmin.config(t.table).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 - label = Object.const_defined?(t.table) ? t.table.constantize.model_name.human : t.table %td= "#{label} ##{t.item}" %td= t.message
Version data entries
34 entries across 34 versions & 3 rubygems