diff --git a/app/components/layout/footer_component.html.erb b/app/components/layout/footer_component.html.erb index dc9a559fd..0122798b1 100644 --- a/app/components/layout/footer_component.html.erb +++ b/app/components/layout/footer_component.html.erb @@ -7,8 +7,8 @@

<%= sanitize(t("layouts.footer.description", - open_source: link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "_blank", rel: "nofollow"), - consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "_blank", rel: "nofollow"))) %> + open_source: open_source_link, + consul: repository_link)) %>

diff --git a/app/components/layout/footer_component.rb b/app/components/layout/footer_component.rb index 0f092f247..17dce63f0 100644 --- a/app/components/layout/footer_component.rb +++ b/app/components/layout/footer_component.rb @@ -4,4 +4,16 @@ class Layout::FooterComponent < ApplicationComponent def footer_legal_content_block content_block("footer_legal") end + + private + + def open_source_link + link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "_blank", + rel: "nofollow") + end + + def repository_link + link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "_blank", + rel: "nofollow") + end end