2013-08-09 07:07:05 +00:00
|
|
|
<nav id="sidebar">
|
|
|
|
<h2 class="position">
|
2013-08-30 08:47:44 +00:00
|
|
|
<%#= link_to content_tag(:i, nil, :class => "icons-users"), admin_site_site_info_path(@site) %>
|
|
|
|
<%= content_tag(:i, nil, :class => "icons-users") %>
|
2013-08-09 07:07:05 +00:00
|
|
|
</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') 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>
|
|
|
|
<div class="sub-nav-block-list">
|
|
|
|
<div class="sub-nav-block" data-icons="">
|
|
|
|
<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))), '#'), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) %>
|
|
|
|
<%= content_tag :li, link_to((content_tag(:span, t(:member_role))),admin_roles_path ), :class => active_for_action('users_new_interfacexx', '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="">
|
|
|
|
<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="">
|
|
|
|
<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="">
|
|
|
|
<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>
|
|
|
|
<div class="sub-nav-arrow"></div>
|
|
|
|
</nav>
|
2012-10-15 07:30:48 +00:00
|
|
|
|