Patch #11295

Add class-attributes to custom fields on issue show page

Added by Ingo Linde over 10 years ago. Updated over 6 years ago.

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


Category:Custom fields
Target version:-


On the issues show page custom fields are currently rendered without any id or class (I have yet to investigate how this is dealt with on other pages).

I would like to propose to add a class-attribute with a value like "custom-field-id-#" to the related tags in similar fashion as is already done for the default Redmine fields for issues on that page.

This feature should allow/facilitate to distinguish between custom fields when accessing them via CSS and JavaScript (e.g. for plugins to achieve custom styling, reporting or evaluation).

The attached patch makes a suggestion on how this could be implemented.
The patch was generated against redmine trunk at r9903.

custom_field_css_classes_on_issues_show.diff Magnifier (728 Bytes) Ingo Linde, 2012-06-29 22:17


#1 Updated by Ingo Linde over 6 years ago

  • Status changed from New to Resolved

Has been added by now.

#2 Updated by Go MAEDA over 6 years ago

  • Status changed from Resolved to Closed

The same feature was implemented in r12400 (Redmine 2.5.0).
Thanks for pointing it out.

Also available in: Atom PDF