mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Remove useless comments
This commit is contained in:
parent
36a53bd11a
commit
9fab0a3000
1 changed files with 2 additions and 8 deletions
|
@ -34,8 +34,6 @@ xml.epp_head do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
## TODO Find out what this domain:host is all about
|
|
||||||
|
|
||||||
xml.tag!('domain:clID', @domain.registrar.code)
|
xml.tag!('domain:clID', @domain.registrar.code)
|
||||||
|
|
||||||
xml.tag!('domain:crID', @domain.cr_id)
|
xml.tag!('domain:crID', @domain.cr_id)
|
||||||
|
@ -43,16 +41,13 @@ xml.epp_head do
|
||||||
|
|
||||||
if @domain.updated_at > @domain.created_at
|
if @domain.updated_at > @domain.created_at
|
||||||
upID = @domain.updator.try(:registrar)
|
upID = @domain.updator.try(:registrar)
|
||||||
upID = upID.code if upID.present? # Did updator return a kind of User that has a registrar?
|
upID = upID.code if upID.present?
|
||||||
xml.tag!('domain:upID', upID) if upID.present? # optional upID
|
xml.tag!('domain:upID', upID) if upID.present?
|
||||||
xml.tag!('domain:upDate', @domain.updated_at.try(:iso8601))
|
xml.tag!('domain:upDate', @domain.updated_at.try(:iso8601))
|
||||||
end
|
end
|
||||||
|
|
||||||
xml.tag!('domain:exDate', @domain.valid_to.iso8601)
|
xml.tag!('domain:exDate', @domain.valid_to.iso8601)
|
||||||
|
|
||||||
# TODO Make domain transferrable
|
|
||||||
#xml.tag!('domain:trDate', @domain.transferred_at) if @domain.transferred_at
|
|
||||||
|
|
||||||
if can? :view_password, @domain, @password
|
if can? :view_password, @domain, @password
|
||||||
xml.tag!('domain:authInfo') do
|
xml.tag!('domain:authInfo') do
|
||||||
xml.tag!('domain:pw', @domain.transfer_code)
|
xml.tag!('domain:pw', @domain.transfer_code)
|
||||||
|
@ -65,7 +60,6 @@ xml.epp_head do
|
||||||
ds_data = Setting.ds_data_allowed ? @domain.dnskeys.find_all { |key| key.ds_digest.present? } : []
|
ds_data = Setting.ds_data_allowed ? @domain.dnskeys.find_all { |key| key.ds_digest.present? } : []
|
||||||
key_data = Setting.key_data_allowed ? @domain.dnskeys.find_all { |key| key.public_key.present? } : []
|
key_data = Setting.key_data_allowed ? @domain.dnskeys.find_all { |key| key.public_key.present? } : []
|
||||||
|
|
||||||
# is there any reason to include <extension> without <secDNS:infData>
|
|
||||||
xml.extension do
|
xml.extension do
|
||||||
def tag_key_data(xml, key)
|
def tag_key_data(xml, key)
|
||||||
xml.tag!('secDNS:keyData') do
|
xml.tag!('secDNS:keyData') do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue