Add support for a help and about url

This commit is contained in:
Eric Schultz 2018-06-06 16:00:01 -05:00
parent dd422b003f
commit e9b82c1409
3 changed files with 9 additions and 3 deletions

View file

@ -12,9 +12,9 @@
<span class='globalFooter-sub-item'> <span class='globalFooter-sub-item'>
<% if current_user %> <% if current_user %>
HELP SHOULD BE HERE <% if Settings.terms_and_privacy&.help_url %><span><%= link_to("Help", Settings.terms_and_privacy.help_url) %></span><% end %>
<% else %> <% else %>
<a href='/about'>About</a> <% if Settings.terms_and_privacy&.about_url %><span><%= link_to("About", Settings.terms_and_privacy.about_url) %></span><% end %>
<% end %> <% end %>
</span> </span>
<span class='globalFooter-sub-item'> <span class='globalFooter-sub-item'>

View file

@ -4,7 +4,7 @@
<div class="minimalFooter"> <div class="minimalFooter">
<div class="container"> <div class="container">
<span>&copy; <%= Time.current.year %> <%= Settings.general.name %></span> <span>&copy; <%= Time.current.year %> <%= Settings.general.name %></span>
<span>About</span> <% if Settings.terms_and_privacy&.about_url %><span><%= link_to("About", Settings.terms_and_privacy.about_url) %></span><% end %>
<span><%= link_to( t("footer.terms_and_privacy"), controller: :static, action: :terms_and_privacy) %></span> <span><%= link_to( t("footer.terms_and_privacy"), controller: :static, action: :terms_and_privacy) %></span>
</div> </div>

View file

@ -234,6 +234,12 @@ Config.schema do
# the url to the privacy policy of this Houdini Project instance # the url to the privacy policy of this Houdini Project instance
optional(:privacy_url).filled(:str?) 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 end
# complete, corresponding source # complete, corresponding source