<nav id="sidebar">
  <h2 class="position">
    <%#= link_to content_tag(:i, nil, :class => "icons-users"), admin_site_site_info_path(@site) %>
    <%= content_tag(:i, nil, :class => "icons-users") %>
  </h2>
  <div id="sidebar-menu">
    <div class="scroller">
      <%= content_tag :ul, :class => "sidebar-nav" do -%>
        <%= content_tag :li, :class => active_for_controllers('users_new_interface','roles') do -%>
          <%= link_to( ( content_tag(:span, content_tag(:i, nil, :class => 'icons-user'))), admin_users_new_interface_index_path) %>
        <% end -%>
        <%= content_tag :li, :class => active_for_controllers('plugins') do -%>
          <%= link_to( ( content_tag(:span, content_tag(:i, nil, :class => 'icons-graduation'))), admin_plugins_path) %>
        <% end -%>
        <%= content_tag :li, :class => active_for_controllers('plugins') do -%>
          <%= link_to( ( content_tag(:span, content_tag(:i, nil, :class => 'icons-pie'))), '#') %>
        <% end -%>
        <%= content_tag :li, :class => active_for_controllers('plugins') do -%>
          <%= link_to( ( content_tag(:span, content_tag(:i, nil, :class => 'icons-layout'))), '#') %>
        <% end -%>
      <% end -%>
    </div>
    <div class="sub-nav-arrow"></div>
  </div>
  <div class="sub-nav-block-list">
    <div class="sub-nav-block" data-icons="&#xe00d;">
      <h4><%= t(:member_) %></h4>
      <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('users_new_interface', 'roles', 'role_statuses', 'role_categorys','infos','plugins')) do -%>
        <%= content_tag :li, link_to((content_tag(:span, t(:all_member))), admin_users_new_interface_index_path), :class => active_for_action('users_new_interface', 'index') %>
        <%= content_tag :li, link_to((content_tag(:span, t(:add_member))), new_admin_users_new_interface_path), :class => active_for_action('users_new_interface', 'new') if (is_admin? rescue nil) %>
        <%= content_tag :li, link_to((content_tag(:span, t(:member_authorization))), '#'), :class => active_for_action('users_new_interfacexx', 'index')  if (is_admin? rescue nil) %>
        <%= content_tag :li, link_to((content_tag(:span, t(:member_registration)) + (User.not_guest_and_approved_user.count > 0 ? content_tag(:span,"(#{User.not_guest_and_approved_user.count})",:style=>"margin-left:3px;", :id=>"registration_count") : "")), admin_users_new_interface_registration_approval_path), :class => active_for_action('users_new_interface', 'registration_approval')  if (is_admin? rescue nil) %>
        <%= content_tag :li, link_to((content_tag(:span, t(:member_role))),admin_roles_path ), :class => active_for_action('roles', 'index')  if (is_admin? rescue nil) %>
        <%= content_tag :li, link_to((content_tag(:span, t(:member_info))), edit_admin_info_path(Info.first.id.to_s)), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) and Info.first %>
      <% end -%>
    </div>
    <div class="sub-nav-block" data-icons="&#xe070;">
      <h4><%= t(:academic_info) %></h4>
      <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('users_new_interface', 'roles', 'role_statuses', 'role_categorys','infos','plugins')) do -%>
        <%= content_tag :li, link_to((content_tag(:span, t(:list_))), admin_plugins_path), :class => active_for_action('users_new_interface', 'index') %>
      <% end -%>
    </div>
    <div class="sub-nav-block" data-icons="&#xe070;">
      <h4><%= t(:analysis) %></h4>
      <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('users_new_interface', 'roles', 'role_statuses', 'role_categorys','infos','plugins')) do -%>
      <% end -%>
    </div>
    <div class="sub-nav-block" data-icons="&#xe070;">
      <h4><%= t(:groups) %></h4>
      <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('users_new_interface', 'roles', 'role_statuses', 'role_categorys','infos','plugins')) do -%>
      <% end -%>
    </div>
  </div>
</nav>

