Project

General

Profile

Actions

Defect #42978

open

custom theme how to has limited info for Redmine 6

Added by Roland Giesler about 4 hours ago. Updated about 3 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Themes
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

I created a custom theme in themes/ass and added these:
/var/www/redmine/themes/ass$ tree
.
├── favicon
│   └── Abellard Favicon.png
├── images
│   └── abellardSS.png
└── stylesheets
├── application.css

In application.css I have (based on example in https://www.redmine.org/projects/redmine/wiki/Themes and then https://www.redmine.org/projects/redmine/wiki/HowTo_create_a_custom_Redmine_theme:


/* load the default Redmine stylesheet */
/* @import url(../../../app/assets/stylesheets/application.css); */

/* add a logo in the header */
#header {
    background: #507AAA url(../images/abellardSS.png) no-repeat 2px;
    padding-left: 86px;
}

/* move the project menu to the right */
#main-menu { 
    left: auto;
    right: 0px;
}

I restarted Apache for good measure, but I apply the theme, I get a page that clearly doesn't load the css.

I guess there are some more changes to Redmine 6 that effect this? Why would my page not load correctly?

Actions #1

Updated by Roland Giesler about 4 hours ago

Actually I just realised the Redmine version is 6.0.5-stable, not 6.0.6.

Actions #2

Updated by Roland Giesler about 3 hours ago

I also did some more testing and downloaded the A1 theme from RedmineUP and after installation I get exactly the same problem, so it is likely that something in my configuration is not correct? The two built-in themes work fine when I select them (alternate & classic).

I have tried adding this to my apache2 site config file, but with or without it, the error persists.

    Alias /public/assets/themes /themes
    <Location /themes>
        Allow from all
        Options -MultiViews
        Require all granted
    </Location>
Actions

Also available in: Atom PDF