byterazors_redmine_footer/lib/hook.rb

9 lines
492 B
Ruby
Raw Normal View History

2024-02-11 22:31:25 +01:00
class ByterazorsRedmineFooterHookViewListener < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context={})
footer_content = 'some_footer_content'
[
"<script>document.addEventListener('DOMContentLoaded',function(){var footer = document.getElementById('footer').innerHTML='<div class=\"bgl\"><div class=\"bgr\"><div style=\"text-align:center;\"><a href=\"/projects/hosting/wiki/Legal_notice\">Legal Information</a></div></div></div>';});</script>",
]
end
end