Sha256: 39ba6066f4965bf0277ff4f88fe9714e7ef5c215cb94232cba4909324f77cb80

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

ul.nav.nav-pills
  - @model.available_tabs.each do |nav_item|
    - if 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

1 entries across 1 versions & 1 rubygems

Version Path
cm-admin-0.5.8 app/views/cm_admin/main/_tabs.html.slim