Sha256: b4d9686b92558bd44db3f086091f63eca15e72bc01c81c91b250115da25d73a1
Contents?: true
Size: 627 Bytes
Versions: 12
Compression:
Stored size: 627 Bytes
Contents
ul.nav.nav-pills - @model.available_tabs.each do |nav_item| - if nav_item.display_if.call(@ar_object) - if nav_item.custom_action.empty? || (nav_item.custom_action.present? && policy([:cm_admin, @model.name.classify.constantize]).send(:"#{nav_item.custom_action}?")) li.nav-item - nav_item_action_name = nav_item.custom_action.present? ? nav_item.custom_action : 'show' = link_to nav_item.nav_item_name.to_s.titleize, cm_admin.send("#{@ar_object.model_name.singular}_#{nav_item_action_name}_path", @ar_object.id), class: "nav-link #{ nav_item_action_name == action_name ? 'active' : ''}"
Version data entries
12 entries across 12 versions & 1 rubygems