<%= 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) %>
<%= link_to(label, url_for(action: show_action.action_name, model_name: abstract_model.to_param, id: o.id)) %>
|
<% else %>
<%= label %>
|
<% end %>
<% else %>
<% label = Object.const_defined?(t.table) ? t.table.constantize.model_name.human : t.table %>
<%= "#{label} ##{t.item}" %>
|
<% end %>
<%= t.message %>
|
<% end %>