Sha256: b990bf013a702493d83aa4fb0e90e49d02ac3f78a5fc29db543f334c50a75fd8
Contents?: true
Size: 1.86 KB
Versions: 2
Compression:
Stored size: 1.86 KB
Contents
.cm-navbar .cm-navbar__lhs .bread-crumb-area = yield :bread_crumb .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 a.primary-btn.ml-2 href="#{page_url('new')}" | Add - @model.available_actions.select{|act| act if act.route_type == 'collection'}.each do |custom_action| - if custom_action.display_type == :button = link_to custom_action.name.titleize, @model.ar_model.table_name + '/' + custom_action.path, class: 'primary-btn ml-2', method: custom_action.verb - elsif custom_action.display_type == :modal = link_to custom_action.name.titleize, '', class: 'primary-btn ml-2', data: { bs_toggle: "modal", bs_target: "##{custom_action.name.classify}Modal" } - elsif @model.current_action.name == 'show' - @model.available_actions.select{|act| act if act.route_type == 'member'}.each do |custom_action| - if custom_action.display_type == :button && custom_action.display_if.call(@ar_object) = link_to custom_action.name.titleize, custom_action.path.gsub(':id', params[:id]), class: 'primary-btn ml-2', method: custom_action.verb - elsif custom_action.display_type == :modal && custom_action.display_if.call(@ar_object) = link_to custom_action.name.titleize, '', class: 'primary-btn ml-2', data: { bs_toggle: "modal", bs_target: "##{custom_action.name.classify}Modal" }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cm-admin-0.5.2 | app/views/cm_admin/main/_top_navbar.html.slim |
cm-admin-0.5.0 | app/views/cm_admin/main/_top_navbar.html.slim |