Files
baupm-core/init.rb
2023-11-04 15:36:39 +01:00

29 lines
968 B
Ruby

require 'redmine'
class Hooks < Redmine::Hook::ViewListener
render_on :view_layouts_base_html_head, :partial => 'header', :layout => false
end
Redmine::Plugin.register :baupm_core do
name 'BauPM Core Plugin'
url 'https://src.bundespruefstelle.ch/magdev/baupm-core'
author 'Marco Grätsch'
author_url 'https://src.bundespruefstelle.ch/magdev'
description "Common modifications for BauPM"
version '0.1.0'
requires_redmine :version_or_higher => '4.1.0'
settings :default => {
'baupm_background_color' => '#ffffff',
'baupm_theme_color' => '#575757',
'baupm_application_title' => 'BauPM',
'baupm_application_short_title' => 'BauPM',
'baupm_application_description' => 'Baustellen-Management-System auf Redmine-Basis',
'baupm_manifest_orientation' => 'portrait',
'baupm_manifest_display' => 'standalone',
'baupm_manifest_start_url' => '.',
'baupm_enable_webapp' => '1'
}, :partial => 'settings/baupm_settings'
end