Project

General

Profile

Actions

Feature #11515

closed

CSS-classes for field values in issue list

Added by Daniel Senff almost 13 years ago. Updated almost 13 years ago.

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

0%

Estimated time:
Resolution:
Invalid

Description

The subject sounds worse than it is. I used to run a modified theme in which I highlight the issues in the issue list by status.
I did this by modifying the /app/views/issues/_list.html.erb@Line31:

<%= raw query.columns.map {|column| "<td class=\"#{column.css_classes} #{ column.name == :status ? column.value(issue).to_s.downcase.gsub(' ','_') : ''}\">#{column_content(column, issue)}</td>"}.join %>
See also: https://github.com/Dahie/redmine/commit/2f1fc22e22c7f7d1734a54680d263ab72c67c127

This is a very specific modification for the status cell and I feel this in its current form it's not worthy a patch.

However I'd be very happy to have a formalized flexible means to do this in redmine more cleanly, to be able to style list entries by the actual values of their fields. I'd be very happy if this is considered in a future version, so I can get rid of my patching. :)

Actions #1

Updated by Jean-Philippe Lang almost 13 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

There's alreay a CSS class for the issue status on the row (tr tag). Eg:

<tr id="issue-11551" class="hascontextmenu odd issue status-1 priority-2 ">
Actions

Also available in: Atom PDF