Sha256: 25a6b23cd997c4f1597fb5ef14c5cc3aeefbffd6fb9c2087f4cc463c1d8cb6d8

Contents?: true

Size: 370 Bytes

Versions: 79

Compression:

Stored size: 370 Bytes

Contents

- if can?(:index, Event)
  = tenon_menu_item item, events_path, :active => is_active("events"), :submenu => can?(:create, Event)
  - if can?(:create, Event)
    %ul.tenon_submenu{ :class => is_active(["events"]) ? "#{item} active" : item }
      = link_to "New Event", new_event_path, :class => ("active" if is_active(["events"]) && params[:action] == "new")
    .spacer

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
tenon-1.1.4 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.1.3 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.1.2 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.1.1 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.76 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.75 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.74 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.73 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.72 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.71 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.70 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.69 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.68 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.67 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.66 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.65 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.64 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.63 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.62 app/views/tenon/shared/menu_items/_events.html.haml
tenon-1.0.61 app/views/tenon/shared/menu_items/_events.html.haml