Sha256: 2d93b1b6f9433ffad4cefdc3e50b59409e2d13de3f6baa6c776173a21af98227

Contents?: true

Size: 569 Bytes

Versions: 10

Compression:

Stored size: 569 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cm-admin-0.7.2 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.7.1 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.7.0 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.6.9 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.6.8 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.6.7 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.6.6 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.6.5 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.6.4 app/views/cm_admin/main/_tabs.html.slim
cm-admin-0.6.3 app/views/cm_admin/main/_tabs.html.slim