Add support for a help and about url
This commit is contained in:
parent
dd422b003f
commit
e9b82c1409
3 changed files with 9 additions and 3 deletions
|
@ -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'>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="minimalFooter">
|
<div class="minimalFooter">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<span>© <%= Time.current.year %> <%= Settings.general.name %></span>
|
<span>© <%= 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>
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue