Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <web-client> use-activeresource : render the correct view for index action; Bug 519740
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Thu, 17 Sep 2009 10:29:04 +0200
  • Message-id: <E1MoJ2g-0003U8-AN@xxxxxxxxxxxxxxxx>
ref: refs/heads/use-activeresource
commit 7b80250fffaa6346793fdaac498d581ca1a84774
Author: Stefan Schubert <schubi@xxxxxxx>
Date: Thu Sep 17 10:29:04 2009 +0200

render the correct view for index action; Bug 519740
---
webclient/app/controllers/sessions_controller.rb | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/webclient/app/controllers/sessions_controller.rb
b/webclient/app/controllers/sessions_controller.rb
index 88ca6f7..6302a3d 100644
--- a/webclient/app/controllers/sessions_controller.rb
+++ b/webclient/app/controllers/sessions_controller.rb
@@ -11,7 +11,9 @@ class SessionsController < ApplicationController
#before_filter :ensure_logout, :only => [:new, :create]

def index
- # only used to display the flash message
+ #This is used in order to support the browser "back" button
+ new
+ return
end

# shows the current session
@@ -23,12 +25,6 @@ class SessionsController < ApplicationController
# render login screen
#
def new
- # we can't create session if we are logged in
- if logged_in?
- redirect_to :action => "index"
- return
- end
-
# Set @host to display info at login screen
@host = Host.find(params[:hostid]) rescue nil

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages