app/views/administrador/application/sidebars/_engine.html.haml in administrador-0.0.31.pre vs app/views/administrador/application/sidebars/_engine.html.haml in administrador-0.0.32.pre
- old
+ new
@@ -1,10 +1,10 @@
%aside#sidebar-engines.p-2.pr-0{ data: { sidebar: { position: :left, size: '20rem', state: initial_engine_sidebar_state, mode: :push } } }
.container-fluid
.row
.col-12
- administrador_helper(self).registered_engines.each_with_index do |(engine), index|
- - next unless engine.options[:show_in_engine_sidebar]
+ - next unless engine.options[:show].respond_to?(:call) ? instance_exec(&engine.options[:show]) : engine.options[:show]
.administrador-engine.mb-4.text-secondary{ id: dom_id(engine), class: dom_class(engine) }
%h6.administrador-engine-name.d-flex.text-uppercase
%i.fas.fa-home.mr-1
= link_to(send(engine.router_name).root_path, class: 'administrador-link-to-engine-home') do
= engine.translated_name
\ No newline at end of file