Sha256: 0e4ab62c8f64b7e5f15b9e8d13378afcfbe6f4d231f1ef0991da021bf68dbc13

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

ul.nav.nav-pills
  - @model.available_tabs.each do |nav_item|
    - if 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/#{@model.name.underscore.pluralize}/#{@ar_object.id}/#{nav_item.custom_action}", class: "nav-link #{ nav_item_action_name == action_name ? 'active' : ''}"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cm-admin-0.6.2 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.6.1 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.6.0 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.5.9 app/views/cm_admin/main/_tabs.html.slim