Sha256: daad40b406499160efccea69f7fb6e5eef8da2285c9388d17eda9211f21a6100
Contents?: true
Size: 1.9 KB
Versions: 9
Compression:
Stored size: 1.9 KB
Contents
.cm-navbar .cm-navbar__lhs - if cm_admin.method_defined?(:"#{@model.name.underscore}_index_path") && (@model.current_action.name == 'show' || @model.current_action.layout_type.present?) .bread-crumb-area .breadcrumb-text = link_to @model.name + ' /', cm_admin.send(:"#{@model.name.underscore}_index_path") .nav-title-area p.title-text = action_title p.title-sub-text = action_description .cm-navbar__rhs - if @model.current_action.name == 'index' .export-container .dropdown button.secondary-btn data-bs-toggle='dropdown' span i.fa.fa-arrow-down span | Export span i.fa.fa-angle-down ul.dropdown-menu.export-popup li .popup-option.pointer data-bs-toggle='modal' data-bs-target='#exportmodal' span Export - new_action = @model.available_actions.select{|act| act if act.action_type.eql?(:default) && act.name.eql?('new')} - if new_action.any? && policy([:cm_admin, @model.name.classify.constantize]).new? = link_to 'Add', cm_admin.send(:"#{@model.name.underscore}_new_path"), class: 'primary-btn ml-2' - @model.available_actions.select{|act| act if act.route_type == 'collection'}.each do |custom_action| = custom_action_items(custom_action, 'index') - elsif @model.current_action.name == 'show' - @model.available_actions.select{|act| act if act.route_type == 'member'}.each do |custom_action| = custom_action_items(custom_action, 'show') - edit_action = @model.available_actions.select{|act| act if act.action_type.eql?(:default) && act.name.eql?('edit')} - if edit_action.any? && policy([:cm_admin, @model.name.classify.constantize]).edit? = link_to "Edit #{@model.name}", cm_admin.send(:"#{@model.name.underscore}_edit_path", @ar_object), class: 'primary-btn ml-2'
Version data entries
9 entries across 9 versions & 1 rubygems