Defect #26778

Wrong CSS class for themes if its name includes "_" or " "

Added by Go MAEDA almost 5 years ago. Updated almost 5 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Themes
Target version:-
Resolution: 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">

History

#1 Updated by Toshi MARUYAMA almost 5 years ago

  • Description updated (diff)

Also available in: Atom PDF