Patch #21474

Adding issue css classes to subtasks and relations tr

Added by Codruț Gușoi about 3 years ago. Updated 4 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:UI
Target version:3.3.0

Description

In every other part of the application issues have their CSS classes added to the tr element.
This patch adds them to the sub tasks and relations tables for issues#show.
It is useful for custom themes to be able to style them according to their status/tracker or for JavaScript plugins doing funky front end logic with them.

0001-Added-issue-css-classes-to-issue-show-tr.patch Magnifier (1.91 KB) Codruț Gușoi, 2015-12-10 16:34


Related issues

Related to Redmine - Defect #23391: Wrong CSS classes in subtasks tree Closed
Duplicated by Redmine - Feature #11302: Issue-Details: add additional classes to the list of rela... Closed

Associated revisions

Revision 15061
Added by Jean-Philippe Lang about 3 years ago

Adding issue css classes to issue subtasks and relations tr (#21474).

Patch by Codruț Gușoi.

History

#1 Updated by Go MAEDA about 3 years ago

  • Target version set to 3.3.0

Useful for theme developers. I tried the patch and works fine.
I suggest including this in Redmine 3.3.0.

#2 Updated by Jean-Philippe Lang about 3 years ago

  • Subject changed from Adding issue css classes to issue show subtasks and relations tr to Adding issue css classes to subtasks and relations tr
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

Committed, thanks.

#3 Updated by Toshi MARUYAMA about 3 years ago

  • Description updated (diff)

#4 Updated by Marius BALTEANU 11 months ago

  • Duplicated by Feature #11302: Issue-Details: add additional classes to the list of related tickets and subtasks for better theme support added

#5 Updated by Jérôme BATAILLE 4 months ago

Hi,

This patch introduced a duplication of the 'issue' css tag because it is also provided by the css_classes method.
Can it be fixed ?

Thanks a lot.

#6 Updated by Marius BALTEANU 4 months ago

  • Related to Defect #23391: Wrong CSS classes in subtasks tree added

#7 Updated by Marius BALTEANU 4 months ago

Jérôme BATAILLE wrote:

Hi,

This patch introduced a duplication of the 'issue' css tag because it is also provided by the css_classes method.
Can it be fixed ?

Thanks a lot.

It was already fixed in #23391.

Also available in: Atom PDF