diff --git a/app/components/common/footer/component.html.erb b/app/components/common/footer/component.html.erb
index 67f83a345..444f23cc6 100644
--- a/app/components/common/footer/component.html.erb
+++ b/app/components/common/footer/component.html.erb
@@ -45,6 +45,7 @@
<%= t('common.footer.statistics')%>
<%= t('common.footer.dispute_committee') %>
+ <%= t('auctions.top_grid.terms_and_conditions_link').capitalize %>
diff --git a/app/components/pages/auction/cards/component.html.erb b/app/components/pages/auction/cards/component.html.erb
index 3d4f61f74..9c1cf2797 100644
--- a/app/components/pages/auction/cards/component.html.erb
+++ b/app/components/pages/auction/cards/component.html.erb
@@ -62,6 +62,12 @@
+
+
<%= t("auctions.top_grid.footer_html", + terms_and_conditions_link: link_to(t("auctions.top_grid.terms_and_conditions_link"), + Setting.find_by(code: 'terms_and_conditions_link').retrieve), + faq_link: link_to(t("auctions.top_grid.faq_link"), faq_link), + reserved_domain_names_link: link_to(t("auctions.top_grid.reserved_domain_names_link"), reserved_domain_names_link)) %>
diff --git a/app/components/pages/auction/cards/component.rb b/app/components/pages/auction/cards/component.rb index 1aae55710..84242bd7f 100644 --- a/app/components/pages/auction/cards/component.rb +++ b/app/components/pages/auction/cards/component.rb @@ -1,7 +1,23 @@ module Pages module Auction module Cards - class Component < ApplicationViewComponent; end + class Component < ApplicationViewComponent + def faq_link + if I18n.locale == :et + 'https://www.internet.ee/abi-ja-info/kkk#III__ee_domeenioksjonid' + elsif I18n.locale == :en + 'https://www.internet.ee/help-and-info/faq#III__ee_domain_auctions' + end + end + + def reserved_domain_names_link + if I18n.locale == :en + 'https://www.internet.ee/eif/news/auction-schedule-of-reserved-domains' + elsif I18n.locale == :et + 'https://www.internet.ee/eis/uudised/reserveeritud-domeenide-oksjonite-kava' + end + end + end end end end diff --git a/config/locales/auctions.en.yml b/config/locales/auctions.en.yml index 9391adc59..cf74009c7 100644 --- a/config/locales/auctions.en.yml +++ b/config/locales/auctions.en.yml @@ -86,7 +86,7 @@ en: please_note: | NB! Please note that you will receive priority right to register the domain! Upon registration, you will also be charged a domain registration fee based on your chosen registrar's price list. - footer_html: "Please check out the %{terms_and_conditions_link} of the .ee %{faq_link}. You can find the schedule of the reserved domain names from %{reserved_domain_names_link}!" + footer_html: "Please check out the %{terms_and_conditions_link} of the .ee %{faq_link}." terms_and_conditions_link: "terms and conditions" faq_link: "auctioning process" reserved_domain_names_link: "here" diff --git a/config/locales/auctions.et.yml b/config/locales/auctions.et.yml index 7599838fb..30f5e3863 100644 --- a/config/locales/auctions.et.yml +++ b/config/locales/auctions.et.yml @@ -96,7 +96,7 @@ et: Domeeni registreerimisel lisandub teie valitud registripidaja hinnakirja alusel ka domeeni registreerimise tasu. - footer_html: "Tutvu ka %{terms_and_conditions_link} ja loe %{faq_link}. Avatud pakkumistega inglise oksjonile tulevate domeenide ajakava leiad %{reserved_domain_names_link}!" + footer_html: "Tutvu ka %{terms_and_conditions_link} ja loe %{faq_link}." terms_and_conditions_link: "oksjonikeskkonna kasutajatingimustega" faq_link: "detailsemalt oksjoniprotsessist" reserved_domain_names_link: "siit"