diff --git a/app/views/components/_footer_sub.html.erb b/app/views/components/_footer_sub.html.erb index cce410c3..89d29235 100644 --- a/app/views/components/_footer_sub.html.erb +++ b/app/views/components/_footer_sub.html.erb @@ -12,9 +12,9 @@ <% if current_user %> - HELP SHOULD BE HERE + <% if Settings.terms_and_privacy&.help_url %><%= link_to("Help", Settings.terms_and_privacy.help_url) %><% end %> <% else %> - About + <% if Settings.terms_and_privacy&.about_url %><%= link_to("About", Settings.terms_and_privacy.about_url) %><% end %> <% end %> diff --git a/app/views/layouts/_apified_footer.html.erb b/app/views/layouts/_apified_footer.html.erb index 52c507b5..2a8cefe1 100644 --- a/app/views/layouts/_apified_footer.html.erb +++ b/app/views/layouts/_apified_footer.html.erb @@ -4,7 +4,7 @@
© <%= Time.current.year %> <%= Settings.general.name %> - About + <% if Settings.terms_and_privacy&.about_url %><%= link_to("About", Settings.terms_and_privacy.about_url) %><% end %> <%= link_to( t("footer.terms_and_privacy"), controller: :static, action: :terms_and_privacy) %>
diff --git a/config/environment.rb b/config/environment.rb index ce60a5ce..01818bff 100755 --- a/config/environment.rb +++ b/config/environment.rb @@ -234,6 +234,12 @@ Config.schema do # the url to the privacy policy of this Houdini Project instance optional(:privacy_url).filled(:str?) + + # the url to the help page of this Houdini Project instance + optional(:help_url).filled(:str?) + + # the url to the about page of this Houdini Project instance + optional(:about_url).filled(:str?) end # complete, corresponding source