Don't refer to the decline button when there isn't one
This commit is contained in:
parent
9aaafcb425
commit
6c2089da2d
6 changed files with 20 additions and 7 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue