Skip to content

Commit

Permalink
bug-fix: duplicating copy right year (#1388)
Browse files Browse the repository at this point in the history
Remove script and update with <%= Time.now.year %> to get current year for copyright.
  • Loading branch information
Gabe-Torres authored Mar 4, 2025
1 parent 188a44a commit 94584bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/shared/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<span>
©
<span id="copyright">
<script>document.getElementById('copyright').appendChild(document.createTextNode(new Date().getFullYear()))</script>
<%= Time.now.year %>
</span>
<%= t('.rights') %>
</span>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/shared/_no_tenant_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- Desc -->
<div class="col-md-6 col-12 text-center text-md-start">
<span>© <span id="copyright">
<script>document.getElementById('copyright').appendChild(document.createTextNode(new Date().getFullYear()))</script>
<%= Time.now.year %>
</span><%= t('.rights') %></span>
</div>
<!-- Links -->
Expand Down

0 comments on commit 94584bd

Please sign in to comment.