<% if !current_user.nil? %> <%= render :partial=>"layouts/member_orbit_menu"%> <% else %> <%= render :partial=>"layouts/guest_orbit_menu"%> <% end -%>
  • <%= link_to '', root_path, {'data-icon' => 'house'} %>
  • <%= link_to '', desktop_path, {'data-icon' => 'desktop'} %>
    • <% @site_in_use_locales.each do |locale| %> <%= content_tag :li, (link_to t(:_locale, :locale => locale), add_locale(remove_locale((referer rescue request.fullpath)), locale)), :class => (I18n.locale.eql?(locale.to_sym) ? 'active' : nil) %> <% end %>
  • '> '> <%= text_field_tag 'q','',{:class => "search-query span3",:placeholder=> t(:search_nccu) ,:disabled=> ((@site.search["sitesearch"] || @site.search["domains"] ).blank? rescue true)}%>
  • <% if user_signed_in? %>
  • <%#= image_tag current_user.avatar.thumb.url, :class => 'member-img' %> <%= current_user.name %>
    • <%= link_to content_tag(:i, nil, :class => 'icons-tools') + ' ' + t(:account_setting), desktop_path+"#settings-account" %>
    • <%= link_to content_tag(:i, nil, :class => 'icons-desktop') + ' ' + t(:desktop), desktop_path %>
    • <%= link_to content_tag(:i, nil, :class => 'icons-outlog') + ' ' + t(:logout), destroy_user_session_path %>
    • <%= t(:help) %>
  • <% else %>
  • <%= t(:login) %>
    • <%= form_for :user, :url => user_session_path do |f| %>
    • <%= f.text_field :email, :class => 'span2', :placeholder => t(:email), :size => 16 %>
    • <%= f.password_field :password, :class => 'span2', :placeholder => t(:password), :size => 16 %>
    • <%= link_to t(:forgot_password), new_user_password_path, :class => 'forgot' %>
    • <%= content_tag :button, t(:login), :type => :submit, :class => 'btn btn-primary' %>
    • <%= t(:or_lower) %>
    • <% end %>
    <%#= link_to t(:register), new_user_registration_path, :class => 'btn btn-danger register' %>
  • <% end %>