ADD: initial commit

This commit is contained in:
Dominik Meyer 2024-02-11 22:31:25 +01:00
commit e632ca3f1e
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97
3 changed files with 68 additions and 0 deletions

49
.gitignore vendored Normal file
View File

@ -0,0 +1,49 @@
*.rbc
capybara-*.html
.rspec
/log
/tmp
/db/*.sqlite3
/db/*.sqlite3-journal
/public/system
/coverage/
/spec/tmp
*.orig
rerun.txt
pickle-email-*.html
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/master.key
# Only include if you have production secrets in this file, which is no longer a Rails default
# config/secrets.yml
# dotenv
# TODO Comment out this rule if environment variables can be committed
.env
## Environment normalization:
/.bundle
/vendor/bundle
# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json
# Ignore pow environment settings
.powenv
# Ignore Byebug command history file.
.byebug_history
# Ignore node_modules
node_modules/

11
init.rb Normal file
View File

@ -0,0 +1,11 @@
Redmine::Plugin.register :byterazors_redmine_footer do
name 'Byterazors Redmine Footer plugin'
author 'byterazor'
description 'This plugin provides footer links for byterazors redmine instance'
version '0.0.1'
url 'https://gitea.federationhq.de/byterazor/byterazors_redmine_footer'
author_url 'https://gitea.federationhq.de/byterazor'
end
require 'hook'

8
lib/hook.rb Normal file
View File

@ -0,0 +1,8 @@
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