change_issue_color_mechanism_for_alternate_theme.diff

Patch against r1941. - Mischa The Evil, 2008-10-22 23:24

Download (5.13 KB)

View differences:

app/views/issues/_list.rhtml (working copy)
11 11
	</tr></thead>
12 12
	<tbody>
13 13
	<% issues.each do |issue| -%>
14
	<tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
14
	<tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.id}" %>">
15 15
	    <td class="checkbox"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
16 16
		<td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
17 17
        <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.name %><% end %>
app/views/issues/_list_simple.rhtml (working copy)
8 8
		</tr></thead>
9 9
		<tbody>	
10 10
		<% for issue in issues %>
11
		<tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
11
		<tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.id}" %>">
12 12
			<td class="id">
13 13
			    <%= check_box_tag("ids[]", issue.id, false, :style => 'display:none;') %>
14 14
				<%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
public/themes/alternate/stylesheets/application.css (working copy)
28 28
/* Issues grid styles by priorities (provided by Wynn Netherland) */
29 29
table.list tr.issue a { color: #666; }
30 30

  
31
tr.odd.priority-5, table.list tbody tr.odd.priority-5:hover { color: #900; font-weight: bold; }
32
tr.odd.priority-5 { background: #ffc4c4; }
33
tr.even.priority-5, table.list tbody tr.even.priority-5:hover { color: #900; font-weight: bold; }
34
tr.even.priority-5 { background: #ffd4d4; }
35
tr.priority-5 a, tr.priority-5:hover a { color: #900; }
36
tr.odd.priority-5 td, tr.even.priority-5 td { border-color: #ffb4b4; }
31
tr.odd.priority-7, table.list tbody tr.odd.priority-7:hover { color: #900; font-weight: bold; }
32
tr.odd.priority-7 { background: #ffc4c4; }
33
tr.even.priority-7, table.list tbody tr.even.priority-7:hover { color: #900; font-weight: bold; }
34
tr.even.priority-7 { background: #ffd4d4; }
35
tr.priority-7 a, tr.priority-7:hover a { color: #900; }
36
tr.odd.priority-7 td, tr.even.priority-7 td { border-color: #ffb4b4; }
37 37

  
38
tr.odd.priority-4, table.list tbody tr.odd.priority-4:hover { color: #900; }
39
tr.odd.priority-4 { background: #ffc4c4; }
40
tr.even.priority-4, table.list tbody tr.even.priority-4:hover { color: #900; }
41
tr.even.priority-4 { background: #ffd4d4; }
42
tr.priority-4 a { color: #900; }
43
tr.odd.priority-4 td, tr.even.priority-4 td { border-color: #ffb4b4; }
38
tr.odd.priority-6, table.list tbody tr.odd.priority-6:hover { color: #900; }
39
tr.odd.priority-6 { background: #ffc4c4; }
40
tr.even.priority-6, table.list tbody tr.even.priority-6:hover { color: #900; }
41
tr.even.priority-6 { background: #ffd4d4; }
42
tr.priority-6 a { color: #900; }
43
tr.odd.priority-6 td, tr.even.priority-6 td { border-color: #ffb4b4; }
44 44

  
45
tr.odd.priority-3, table.list tbody tr.odd.priority-3:hover { color: #900; }
46
tr.odd.priority-3 { background: #fee; }
47
tr.even.priority-3, table.list tbody tr.even.priority-3:hover { color: #900; }
48
tr.even.priority-3 { background: #fff2f2; }
49
tr.priority-3 a { color: #900; }
50
tr.odd.priority-3 td, tr.even.priority-3 td { border-color: #fcc; }
45
tr.odd.priority-5, table.list tbody tr.odd.priority-5:hover { color: #900; }
46
tr.odd.priority-5 { background: #fee; }
47
tr.even.priority-5, table.list tbody tr.even.priority-5:hover { color: #900; }
48
tr.even.priority-5 { background: #fff2f2; }
49
tr.priority-5 a { color: #900; }
50
tr.odd.priority-5 td, tr.even.priority-5 td { border-color: #fcc; }
51 51

  
52
tr.odd.priority-1, table.list tbody tr.odd.priority-1:hover { color: #559; }
53
tr.odd.priority-1 { background: #eaf7ff; }
54
tr.even.priority-1, table.list tbody tr.even.priority-1:hover { color: #559; }
55
tr.even.priority-1 { background: #f2faff; }
56
tr.priority-1 a { color: #559; }
57
tr.odd.priority-1 td, tr.even.priority-1 td { border-color: #add7f3; }
52
tr.odd.priority-3, table.list tbody tr.odd.priority-3:hover { color: #559; }
53
tr.odd.priority-3 { background: #eaf7ff; }
54
tr.even.priority-3, table.list tbody tr.even.priority-3:hover { color: #559; }
55
tr.even.priority-3 { background: #f2faff; }
56
tr.priority-3 a { color: #559; }
57
tr.odd.priority-3 td, tr.even.priority-3 td { border-color: #add7f3; }
58 58

  
59 59
/* Buttons */
60 60
input[type="button"], input[type="submit"], input[type="reset"] { background-color: #f2f2f2; color: #222222; border: 1px outset #cccccc; }