We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5505c4 commit a121a78Copy full SHA for a121a78
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