Project

General

Profile

Actions

Defect #26778

closed

Invalid "theme-*" CSS class in body element when theme name contains spaces

Added by Go MAEDA over 7 years ago. Updated 2 months ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

The body element in HTML has CSS classes correspond to the current theme, project, controller and action.

But "theme-*" class name is broken when the directory name of the theme includes "_" or " ". Assume that you have installed a theme whose directory name is "foo_bar". Redmine will generate a class name "theme-Foo bar". But it is clearly broken because a whitespace is used as a separater.

Here is an example.

<body class="theme-Foo bar project-ecookbook controller-issues action-index avatars-off">

Files

26778.patch (1.08 KB) 26778.patch Go MAEDA, 2024-10-19 02:16
Actions

Also available in: Atom PDF