We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5505c4 + a121a78 commit a329537Copy full SHA for a329537
1 file changed
app/views/rails_admin/main/_dashboard_history.html.haml
@@ -25,4 +25,6 @@
25
- label = Object.const_defined?(t.table) ? t.table.constantize.model_name.human : t.table
26
%td= "#{label} ##{t.item}"
27
%td= t.message
28
- %td= link_to(t("admin.history_rollback.table_headers.view_changes"), "#", class: "changeset", :data => {:url => url_for(action: action(:history_index, abstract_model).action_name, model_name: abstract_model.to_param, version_id: t.version_id)})
+ %td
29
+ -if history_action = action(:history_index, abstract_model)
30
+ = link_to(t("admin.history_rollback.table_headers.view_changes"), "#", class: "changeset", :data => {:url => url_for(action: history_action.action_name, model_name: abstract_model.to_param, version_id: t.version_id)})
0 commit comments