From e9b82c14094bdb228802c862fd843158e4db64fc Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 6 Jun 2018 16:00:01 -0500 Subject: [PATCH] Add support for a help and about url --- app/views/components/_footer_sub.html.erb | 4 ++-- app/views/layouts/_apified_footer.html.erb | 2 +- config/environment.rb | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) 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