ref: refs/heads/master commit d84562db5d89b4bc5f627fa3d8d45a523c98dfc6 Author: Josef Reidinger <jreidinger@suse.cz> Date: Fri Nov 13 15:27:24 2009 +0100 hide back link in first module of basesystem settings bnc#554685 --- webclient/app/helpers/application_helper.rb | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/webclient/app/helpers/application_helper.rb b/webclient/app/helpers/application_helper.rb index 475ce12..d357e3f 100644 --- a/webclient/app/helpers/application_helper.rb +++ b/webclient/app/helpers/application_helper.rb @@ -7,7 +7,8 @@ module ApplicationHelper # Example: # <%= form_send_buttons :disabled => write_disabled %> def form_send_buttons (send_options={}) - form_back_button + form_str_spacer + form_next_button(send_options) + ret = Basesystem.first_step?(session)?"":(form_back_button+form_str_spacer) + ret + form_next_button(send_options) end def form_str_spacer @@ -15,7 +16,7 @@ module ApplicationHelper end def form_back_button - if session[:wizard_current].nil? or session[:wizard_current] == "FINISH" + if Basesystem.done? session link_to _("Cancel"), :controller => "controlpanel" else link_to "Back", :controller => "controlpanel", :action => "backstep" @@ -23,7 +24,7 @@ module ApplicationHelper end def form_next_button(send_options={}) - if session[:wizard_current].nil? or session[:wizard_current] == "FINISH" + if Basesystem.done? session submit_tag _("Save"),send_options else submit_tag _("Next"),send_options -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org