Skip to content

Commit

Permalink
feat: add support for showing a disclaimer (pglombardo#1509)
Browse files Browse the repository at this point in the history
* feat: add support for showing a disclaimer

* test: attempt at fixing
  • Loading branch information
MindTooth authored Oct 8, 2023
1 parent d3acdde commit aeaa243
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<footer class="footer mt-auto py-3">
<div class="container">
<div class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
Expand Down Expand Up @@ -57,5 +56,10 @@
</ul>
<% end %>
</div>
<% if Settings.brand.disclaimer %>
<div>
<p class="fw-light fst-italic text-center" style="font-size: .9rem;"><%= Settings.brand.disclaimer %></p>
</div>
<% end %>
</div>
</footer>
5 changes: 5 additions & 0 deletions config/defaults/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,11 @@ brand:
#
tagline: 'Go Ahead. Email Another Password.'

### Site Disclaimer
#
# Environment variable override: PWP__BRAND__DISCLAIMER='Use at own use risk.'
# disclaimer: 'This is a dummy disclaimer and should not be considered legally binding or taken seriously in any way. The content provided here is for entertainment and illustrative purposes only. Any resemblance to actual disclaimers is purely coincidental. We do not endorse or encourage the use of this disclaimer for any real-world applications, and we strongly advise consulting a legal professional for creating legitimate and appropriate disclaimers for your specific needs. By reading this disclaimer, you agree not to hold us responsible for any confusion, amusement, or bewilderment it may cause. This disclaimer has no legal validity, and any attempt to rely on it for legal, financial, or any other serious matters is ill-advised. Please use disclaimers responsibly and in accordance with applicable laws and regulations.'

### Show Footer Menu Toggle
#
# Environment variable override: PWP__BRAND__SHOW_FOOTER_MENU='true'
Expand Down
5 changes: 5 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,11 @@ brand:
#
tagline: 'Go Ahead. Email Another Password.'

### Site Disclaimer
#
# Environment variable override: PWP__BRAND__DISCLAIMER='Use at own use risk.'
# disclaimer: 'This is a dummy disclaimer and should not be considered legally binding or taken seriously in any way. The content provided here is for entertainment and illustrative purposes only. Any resemblance to actual disclaimers is purely coincidental. We do not endorse or encourage the use of this disclaimer for any real-world applications, and we strongly advise consulting a legal professional for creating legitimate and appropriate disclaimers for your specific needs. By reading this disclaimer, you agree not to hold us responsible for any confusion, amusement, or bewilderment it may cause. This disclaimer has no legal validity, and any attempt to rely on it for legal, financial, or any other serious matters is ill-advised. Please use disclaimers responsibly and in accordance with applicable laws and regulations.'

### Show Footer Menu Toggle
#
# Environment variable override: PWP__BRAND__SHOW_FOOTER_MENU='true'
Expand Down

0 comments on commit aeaa243

Please sign in to comment.