Don't refer to the decline button when there isn't one

This commit is contained in:
Tom Hughes 2010-08-12 18:09:36 +01:00
parent 9aaafcb425
commit 6c2089da2d
6 changed files with 20 additions and 7 deletions

View file

@ -24,7 +24,7 @@ class UserController < ApplicationController
if request.xhr?
render :update do |page|
page.replace_html "contributorTerms", :partial => "terms"
page.replace_html "contributorTerms", :partial => "terms", :locals => { :has_decline => params[:has_decline] }
end
else
@title = t 'user.terms.title'