Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken in Redmine 6.0.1 #99

Open
Grovkillen opened this issue Nov 30, 2024 · 1 comment
Open

Broken in Redmine 6.0.1 #99

Grovkillen opened this issue Nov 30, 2024 · 1 comment

Comments

@Grovkillen
Copy link

I've installed Redmine 6 and the theme is broken. Please see image below:

image

@Grovkillen
Copy link
Author

Ok, I got it working by making a bit of a hack since the new file structure for themes in Redmine isn't 100% bullet proof.

First I needed to do some redirect in the nginx.config:

# Needed MIME-types
types {
	text/css css;
	application/javascript js;
}

# CSS files
location ~ ^/assets/themes/(.+?)/(.+?)\.css$ {
	alias /usr/share/redmine/themes/$1/stylesheets/$2.css;
	access_log off;
	expires max;
}

# JavaScript files
location ~ ^/assets/themes/(.+?)/(.+?)\.js$ {
	alias /usr/share/redmine/themes/$1/javascripts/$2.js;
	access_log off;
	expires max;
}

After that I needed to add the default.css into the themes folder (just copied the standard css code into default.css), and then made the application.css file look like this:

@import url(./default.css);
@import url(./theme.css);

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant