Sha256: 6ccade2d4c53d3b8d076dcd3f265e6e265127489ff1a2e46fffa6d1fbf9f65af

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

%h4= t('tenon.posts.posts')
%nav
  %ul
    - if can?(:manage, Tenon::Post)
      %li{ class: ('active' if controller_name == 'posts') }= link_to t('tenon.posts.posts'), posts_path

    - if can?(:manage, Tenon::PostCategory)
      %li{ class: ('active' if controller_name == 'post_categories') }= link_to t('tenon.post_categories.post_categories'), post_categories_path

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tenon-1.1.8 app/views/tenon/shared/_posts_nav.html.haml
tenon-1.1.7 app/views/tenon/shared/_posts_nav.html.haml
tenon-1.1.6 app/views/tenon/shared/_posts_nav.html.haml
tenon-1.1.5 app/views/tenon/shared/_posts_nav.html.haml