Project

General

Profile

How to use different themes for different mirrors of one Redmine

Added by Leonid E over 12 years ago

e.g. I have domains help.product1.com and help.product2.net that are the mirrors of one redmine, installed on heroku.
The main page (for developers and managers) of this redmine is on e.g. developer1.com

I need to display this redmine on deferent domains with a different themes.

I'll make theme named product1 and product2 for help.product1.com and help.product2.net respectively and for redmine mirror on developer1.com I'll use Classic theme.

Is there any ways to do that?

p.s. I am only PM with a basic php/html skills and can't find the answer by myself...


Replies (1)

RE: How to use different themes for different mirrors of one Redmine - Added by Leonid E over 12 years ago

With a help of RoR guru I have found the answer:

We need to find app/views/layouts/base.html.erb

then we need to define exceptions:

<% if request.domain =~ /product1.com/ %>

<% elsif request.domain =~ /product2.net/ %>

<% else %>

<% end %>
    (1-1/1)