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

Version Path
cm-admin-0.9.0 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.9 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.8 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.7 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.6 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.5 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.4 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.3 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.2 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.1 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.8.0 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.7.8 app/views/cm_admin/main/_tabs.html.slim