##// END OF EJS Templates
Added an alternate theme which provides issue list colorization based on issues priority....
Jean-Philippe Lang -
r899:bb2de53d93ad
parent child
Show More
@@ -0,0 +1,68
1 @import url(../../../stylesheets/application.css);
2
3 body { background-color:#EEEEEE; }
4 #header, #top-menu { margin: 0px 10px 0px 11px; }
5 #main { background: #EEEEEE; margin: 8px 10px 0px 10px; }
6 #content { background: #fff; border-right: 1px solid #bbb; border-bottom: 1px solid #bbb; border-left: 1px solid #d7d7d7; border-top: 1px solid #d7d7d7; }
7 #footer { background-color:#EEEEEE; border: 0px; }
8
9 /* Headers */
10 h2, h3, h4, .wiki h1, .wiki h2, .wiki h3 {border-bottom: 0px;}
11
12 /* Menu */
13 #main-menu li a { background-color: #507AAA; font-weight: bold;}
14 #main-menu li a:hover { background: #507AAA; text-decoration: underline; }
15
16 /* Tables */
17 table.list tbody td, table.list tbody tr:hover td { border: solid 1px #d7d7d7; }
18 table.list thead th {
19 border-width: 1px;
20 border-style: solid;
21 border-top-color: #d7d7d7;
22 border-right-color: #d7d7d7;
23 border-left-color: #d7d7d7;
24 border-bottom-color: #999999;
25 }
26
27 /* Issues grid styles by priorities (provided by Wynn Netherland) */
28 table.list tr.issue a { color: #666; }
29
30 tr.odd.priority-5, table.list tbody tr.odd.priority-5:hover { color: #900; font-weight: bold; }
31 tr.odd.priority-5 { background: #ffc4c4; }
32 tr.even.priority-5, table.list tbody tr.even.priority-5:hover { color: #900; font-weight: bold; }
33 tr.even.priority-5 { background: #ffd4d4; }
34 tr.priority-5 a, tr.priority-5:hover a { color: #900; }
35 tr.odd.priority-5 td, tr.even.priority-5 td { border-color: #ffb4b4; }
36
37 tr.odd.priority-4, table.list tbody tr.odd.priority-4:hover { color: #900; }
38 tr.odd.priority-4 { background: #ffc4c4; }
39 tr.even.priority-4, table.list tbody tr.even.priority-4:hover { color: #900; }
40 tr.even.priority-4 { background: #ffd4d4; }
41 tr.priority-4 a { color: #900; }
42 tr.odd.priority-4 td, tr.even.priority-4 td { border-color: #ffb4b4; }
43
44 tr.odd.priority-3, table.list tbody tr.odd.priority-3:hover { color: #900; }
45 tr.odd.priority-3 { background: #fee; }
46 tr.even.priority-3, table.list tbody tr.even.priority-3:hover { color: #900; }
47 tr.even.priority-3 { background: #fff2f2; }
48 tr.priority-3 a { color: #900; }
49 tr.odd.priority-3 td, tr.even.priority-3 td { border-color: #fcc; }
50
51 tr.odd.priority-1, table.list tbody tr.odd.priority-1:hover { color: #559; }
52 tr.odd.priority-1 { background: #eaf7ff; }
53 tr.even.priority-1, table.list tbody tr.even.priority-1:hover { color: #559; }
54 tr.even.priority-1 { background: #f2faff; }
55 tr.priority-1 a { color: #559; }
56 tr.odd.priority-1 td, tr.even.priority-1 td { border-color: #add7f3; }
57
58 /* Buttons */
59 input[type="button"], input[type="submit"], input[type="reset"] { background-color: #f2f2f2; color: #222222; border: 1px outset #cccccc; }
60 input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover { background-color: #ccccbb; }
61
62 /* Fields */
63 input[type="text"], textarea, select { padding: 2px; border: 1px solid #d7d7d7; }
64 input[type="text"] { padding: 3px; }
65 input[type="text"]:focus, textarea:focus, select:focus { border: 1px solid #888866; }
66
67 /* Misc */
68 .box { background-color: #fcfcfc; }
@@ -1,123 +1,123
1 1 <div class="contextual">
2 2 <%= show_and_goto_link(l(:label_add_note), 'add-note', :class => 'icon icon-note') if authorize_for('issues', 'add_note') %>
3 3 <%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
4 4 <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %>
5 5 <%= watcher_tag(@issue, User.current) %>
6 6 <%= link_to_if_authorized l(:button_copy), {:controller => 'projects', :action => 'add_issue', :id => @project, :copy_from => @issue }, :class => 'icon icon-copy' %>
7 7 <%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'icon icon-move' %>
8 8 <%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
9 9 </div>
10 10
11 11 <h2><%= @issue.tracker.name %> #<%= @issue.id %></h2>
12 12
13 <div class="issue">
13 <div class="issue <%= "status-#{@issue.status.position} priority-#{@issue.priority.position}" %>">
14 14 <h3><%=h @issue.subject %></h3>
15 15 <p class="author">
16 16 <%= authoring @issue.created_on, @issue.author %>.
17 17 <%= l(:label_updated_time, distance_of_time_in_words(Time.now, @issue.updated_on)) if @issue.created_on != @issue.updated_on %>.
18 18 </p>
19 19
20 20 <table width="100%">
21 21 <tr>
22 22 <td style="width:15%"><b><%=l(:field_status)%> :</b></td><td style="width:35%"><%= @issue.status.name %></td>
23 23 <td style="width:15%"><b><%=l(:field_start_date)%> :</b></td><td style="width:35%"><%= format_date(@issue.start_date) %></td>
24 24 </tr>
25 25 <tr>
26 26 <td><b><%=l(:field_priority)%> :</b></td><td><%= @issue.priority.name %></td>
27 27 <td><b><%=l(:field_due_date)%> :</b></td><td><%= format_date(@issue.due_date) %></td>
28 28 </tr>
29 29 <tr>
30 30 <td><b><%=l(:field_assigned_to)%> :</b></td><td><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td>
31 31 <td><b><%=l(:field_done_ratio)%> :</b></td><td><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td>
32 32 </tr>
33 33 <tr>
34 34 <td><b><%=l(:field_category)%> :</b></td><td><%=h @issue.category ? @issue.category.name : "-" %></td>
35 35 <% if User.current.allowed_to?(:view_time_entries, @project) %>
36 36 <td><b><%=l(:label_spent_time)%> :</b></td>
37 37 <td><%= @issue.spent_hours > 0 ? (link_to lwr(:label_f_hour, @issue.spent_hours), {:controller => 'timelog', :action => 'details', :issue_id => @issue}, :class => 'icon icon-time') : "-" %></td>
38 38 <% end %>
39 39 </tr>
40 40 <tr>
41 41 <td><b><%=l(:field_fixed_version)%> :</b></td><td><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td>
42 42 <% if @issue.estimated_hours %>
43 43 <td><b><%=l(:field_estimated_hours)%> :</b></td><td><%= lwr(:label_f_hour, @issue.estimated_hours) %></td>
44 44 <% end %>
45 45 </tr>
46 46 <tr>
47 47 <% n = 0
48 48 for custom_value in @custom_values %>
49 49 <td valign="top"><b><%= custom_value.custom_field.name %> :</b></td><td valign="top"><%= simple_format(h(show_value(custom_value))) %></td>
50 50 <% n = n + 1
51 51 if (n > 1)
52 52 n = 0 %>
53 53 </tr><tr>
54 54 <%end
55 55 end %>
56 56 </tr>
57 57 </table>
58 58 <hr />
59 59
60 60 <% if @issue.changesets.any? %>
61 61 <div style="float:right;">
62 62 <em><%= l(:label_revision_plural) %>: <%= @issue.changesets.collect{|changeset| link_to(changeset.revision, :controller => 'repositories', :action => 'revision', :id => @project, :rev => changeset.revision)}.join(", ") %></em>
63 63 </div>
64 64 <% end %>
65 65
66 66 <p><strong><%=l(:field_description)%></strong></p>
67 67 <%= textilizable @issue, :description, :attachments => @issue.attachments %>
68 68
69 69 <% if @issue.attachments.any? %>
70 70 <%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %>
71 71 <% end %>
72 72
73 73 <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %>
74 74 <hr />
75 75 <div id="relations">
76 76 <%= render :partial => 'relations' %>
77 77 </div>
78 78 <% end %>
79 79
80 80 </div>
81 81
82 82 <% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %>
83 83 <% form_tag({:controller => 'issues', :action => 'change_status', :id => @issue}) do %>
84 84 <p><%=l(:label_change_status)%> :
85 85 <select name="new_status_id">
86 86 <%= options_from_collection_for_select @status_options, "id", "name" %>
87 87 </select>
88 88 <%= submit_tag l(:button_change) %></p>
89 89 <% end %>
90 90 <% end %>
91 91
92 92 <% if @journals.any? %>
93 93 <div id="history">
94 94 <h3><%=l(:label_history)%></h3>
95 95 <%= render :partial => 'history', :locals => { :journals => @journals } %>
96 96 </div>
97 97 <% end %>
98 98
99 99 <% if authorize_for('issues', 'add_note') %>
100 100 <a name="add-note-anchor"></a>
101 101 <div id="add-note" class="box" style="display:none;">
102 102 <h3><%= l(:label_add_note) %></h3>
103 103 <% form_tag({:controller => 'issues', :action => 'add_note', :id => @issue}, :class => "tabular", :multipart => true) do %>
104 104 <p><label for="notes"><%=l(:field_notes)%></label>
105 105 <%= text_area_tag 'notes', '', :cols => 60, :rows => 10, :class => 'wiki-edit' %></p>
106 106 <%= wikitoolbar_for 'notes' %>
107 107 <%= render :partial => 'attachments/form' %>
108 108 <%= submit_tag l(:button_add) %>
109 109 <%= toggle_link l(:button_cancel), 'add-note' %>
110 110 <% end %>
111 111 </div>
112 112 <% end %>
113 113
114 114 <div class="contextual">
115 115 <%= l(:label_export_to) %><%= link_to 'PDF', {:format => 'pdf'}, :class => 'icon icon-pdf' %>
116 116 </div>
117 117 &nbsp;
118 118
119 119 <% set_html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
120 120
121 121 <% content_for :sidebar do %>
122 122 <%= render :partial => 'issues/sidebar' %>
123 123 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now