开发者

Ruby/Rails with Rails Engine (Redmine plugins) - Adding to a base view without overriding it?

开发者 https://www.devze.com 2023-01-23 20:54 出处:网络
I have a plugin that needs to add something the the base Redmine layout. The change consists of a couple divs and a call to a JavaScript function.开发者_如何学C Currently I am accomplishing this by si

I have a plugin that needs to add something the the base Redmine layout. The change consists of a couple divs and a call to a JavaScript function.开发者_如何学C Currently I am accomplishing this by simply overriding the base layout view.

I don't like doing this since if we upgrade Redmine any pages overridden would not update with the updated version. Is there a more elegant way to add this functionality?


You will want to use the Redmine Hooks to add content to the base layout.

0

精彩评论

暂无评论...
验证码 换一张
取 消