Story #109367018 - minor bug fixes, missing punctuation, wrong symbol

This commit is contained in:
Matt Farnsworth 2015-12-16 17:53:08 +02:00
parent 51a5798914
commit 504c4454c5
2 changed files with 4 additions and 5 deletions

View file

@ -47,6 +47,7 @@ class DomainMailModel
def pending_update_expired_notification_for_new_registrant
registrant_pending
subject(:pending_update_expired_notification_for_new_registrant_subject)
domain_info
compose
end
@ -96,7 +97,7 @@ class DomainMailModel
end
def registrant_pending
@params[:new_registrant_emai] = @domain.pending_json['new_registrant_email']
@params[:recipient] = @domain.pending_json['new_registrant_email']
@params[:new_registrant_name] = @domain.pending_json['new_registrant_name']
end
@ -130,8 +131,6 @@ class DomainMailModel
@params
end
#private
def verification_url(path)
token = verification_token or return
@params[:verification_url] = "#{ENV['registrant_url']}/registrant/#{path}/#{@domain.id}?token=#{token}"
@ -151,7 +150,7 @@ class DomainMailModel
@params.store attr, @domain.send(attr)
end
@params.store :registrant_priv, @domain.registrant.priv?
@params.store old_registrant_name, Registrant.find(@domain.registrant_id_was).name
@params.store :old_registrant_name, Registrant.find(@domain.registrant_id_was).name
@params
end

View file

@ -32,7 +32,7 @@ Registrant change process for the domain <%= @params[:name] %> has been started.
New registrant:
Name: <%= @params[:registrant_name] %>
<% if @params[:registrant.priv?] %>
<% if @params[:registrant_priv] %>
Personal code: <%= @params[:registrant_ident] %>
<% else %>
Business Registry code: <%= @params[:registrant_ident] %>