Sha256: d94544465b3ecbc25d0c105cefe470d999c52048742bb3b46699609ad2b55e40
Contents?: true
Size: 902 Bytes
Versions: 11
Compression:
Stored size: 902 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
11 entries across 11 versions & 2 rubygems