Skip to content

Commit

Permalink
warn on outdated version
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Mar 7, 2012
1 parent 0009a7f commit 565c89f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/controllers/main_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def index
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])
render :template => "main/release"
end
Expand Down
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
map.connect ':release/download.js', :controller => 'main', :action => 'download_js'
map.connect '121', :controller => 'main', :action => :index
map.connect '121/:lang', :controller => 'main', :action => 'release', :release => "121"
map.connect '114/:lang', :controller => 'main', :action => 'release', :release => "114"
map.connect '113/:lang', :controller => 'main', :action => 'release', :release => "113"
map.connect '114/:lang', :controller => 'main', :action => 'release', :release => "114", :outdated => true
map.connect '113/:lang', :controller => 'main', :action => 'release', :release => "113", :outdated => true
map.connect 'developer/:lang', :controller => 'main', :action => 'release', :release => "developer"

map.connect 'package/:package', :controller => 'package', :action => 'show'
Expand Down

0 comments on commit 565c89f

Please sign in to comment.