[英]How to change common styles for redmine email messages?
I need to make some styles available for every html email message in my custom redmine plugin. 我需要为我的自定义redmine插件中的每个html电子邮件消息提供一些样式。 So I should do something with mailer layout https://github.com/redmine/redmine/blob/master/app/views/layouts/mailer.html.erb
所以我应该使用邮件程序布局做一些事情https://github.com/redmine/redmine/blob/master/app/views/layouts/mailer.html.erb
As this file doesn't contain any hook ( http://www.redmine.org/projects/redmine/wiki/Plugin_Tutorial#Using-hooks ) only thing I can imagine to do it in this case is to override the layout in the plugin. 由于这个文件不包含任何钩子( http://www.redmine.org/projects/redmine/wiki/Plugin_Tutorial#Using-hooks ),在这种情况下我唯一可以想象的就是覆盖插入。
Is there any way to avoid overriding? 有什么办法可以避免压倒一切吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.