Sha256: c027a5958b2228ac5b573b3c3492f968aa81499437746918f407a3969f6c2836
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 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| = link_to custom_action.name, @model.ar_model.table_name + '/' + custom_action.path, class: 'primary-btn ml-2', method: custom_action.verb - 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_if.call(@ar_object) = link_to custom_action.name, custom_action.path.gsub(':id', params[:id]), class: 'primary-btn ml-2', method: custom_action.verb
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cm-admin-0.4.4 | app/views/cm_admin/main/_top_navbar.html.slim |
cm-admin-0.4.3 | app/views/cm_admin/main/_top_navbar.html.slim |