Skip to content

Commit

Permalink
do not pretend to support more than we have in set_release
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Dec 18, 2012
1 parent a800df2 commit 0d23068
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions app/controllers/main_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,15 @@ def set_release(release)
@repourl = "http://download.opensuse.org/distribution/12.3"
@medium = "dvd"
@gpg = "22C0 7BA5 3417 8CD0 2EFE 22AA B88B 2FD4 3DBD C284"
else
flash[:warn] = _("#{release} is not a supported release.")
@exclude_debug = true
@include_home = 'false'
redirect_to :action => 'release', :release => "122", :locale => FastGettext.locale

This comment has been minimized.

Copy link
@digitaltom

digitaltom Dec 19, 2012

Member

probably it's better to redirect to root, which will automatically redirect to the current release

return false
end
@release = release
return true
end

def redirectit(release)
Expand Down Expand Up @@ -121,18 +128,18 @@ def release
@exclude_debug = true
@include_home = 'false'
flash.now[:info] = _("Please note that this is not the latest openSUSE release. You can get the latest version <a href='/'>here</a>. ") if params[:outdated]
set_release(params[:release])
set_release(params[:release]) || return
render :template => "main/release"
end

def change_install
set_release(params[:release])
set_release(params[:release]) || return
@medium = params[:medium]
render :template => "main/release"
end

def download_js
set_release(params[:release])
set_release(params[:release]) || return
render :template => "main/download", :content_type => 'text/javascript', :layout => false
end

Expand All @@ -141,7 +148,7 @@ def show_request
end

def download
set_release(params[:release])
set_release(params[:release]) || return
medium = params[:medium]

if params[:arch] == "i686"
Expand Down

0 comments on commit 0d23068

Please sign in to comment.