inject script line to the base.rhtml for all pages but the login page

Added by julias slabodin over 7 years ago

Hi,

I am not a Ruby coder so i'd like some help with a seemingly simple issue.
We need to add an in-house widget(js based) to our redmine for our users to work with. adding the widget requires one simple script line. i was able to add it by injecting it directly into the base.rhtml file and it worked fine.
my problem is that (a) users that have not logged in should not be able to access the widget, and (b) the script line broke the login functionality for a lot of users.
So is there a simple plugin or configuration i can implement to inject the script line to the base.rhtml for all pages but the login page?

Any help will be greatly appreciated.

Regards,
Julia.