div(:id => "sidebar") do
  div(:id => "sidebar_options") do
    a.button(:href => 'javascript:;', :id => "command_new",
             :onclick => "command_panel_handler.onNew()") do
      _("command_new")
    end
    
    a.button(:href => 'javascript:;',
             :onclick => "command_panel_handler.onCloseAll()") do
      _("command_close_all")
    end
    
    a.button(:href => 'javascript:;',
             :onclick => "command_panel_handler.onSearch()") do
      _("command_search")
    end
    
    input :type => "text", :id => "search", :name => "search", :size => 15
    
    a.button(:href => 'javascript:;',
             :onclick => "command_panel_handler.onLogin()") do
      _("command_login") + " &raquo;"
    end

    div.slider_panel(:id => "login_panel") do
      out render :partial => "login_panel"
    end
    
    out command_panel_handler
  end
  
  out render :partial => "sidebar_tabs"
end