Sha256: 4c5bd90ac0835e1e0a0347dbad7f289ba93d9a7b14600b11625d513c795f4a91

Contents?: true

Size: 565 Bytes

Versions: 12

Compression:

Stored size: 565 Bytes

Contents

<% if logged_in? -%>
  <div class="main-menu">
    <ul>
<% [
    [s_("Menu|Users list"), {:controller => "users"}],
    [s_("Menu|Directory"), {:controller => "directory"}],
    [s_("Menu|objectClass list"), {:controller => "object_classes"}],
    [s_("Menu|Attribute list"), {:controller => "attributes"}],
    [s_("Menu|Syntax list"), {:controller => "syntaxes"}],
   ].each do |label, options| -%>
      <li <%= current_page?(options) ? 'class="current-page"' : "" %>>
        <%= link_to(label, options) %>
      </li>
<% end -%>
    </ul>
  </div>
<% end -%>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
activeldap-1.2.3 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap3-1.2.3 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap-1.2.2 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap-1.2.1 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap-1.2.0 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap-1.1.0 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap-0.10.0 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap-0.9.0 examples/al-admin/app/views/layouts/_main_menu.rhtml
activeldap-1.0.0 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap-1.0.2 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap-1.0.1 examples/al-admin/app/views/layouts/_main_menu.html.erb
activeldap-1.0.9 examples/al-admin/app/views/layouts/_main_menu.html.erb