ACK - Ok work ;)
--
Benjamin LAN-SUN-LUK
Le 31/03/09 21:31, « Darryl L. Pierce » <mcpierce(a)gmail.com> a écrit :
When a backlog item is at or over its estimated hours, then it
is hilighted with a red background in all backlog item lists.
Signed-off-by: Darryl L. Pierce <mcpierce(a)gmail.com>
---
app/views/items/_list.html.erb | 3 +++
public/stylesheets/lists.css | 10 ++++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/app/views/items/_list.html.erb b/app/views/items/_list.html.erb
index 2aa8bcd..bb574a3 100644
--- a/app/views/items/_list.html.erb
+++ b/app/views/items/_list.html.erb
@@ -48,6 +48,9 @@
<% else %>
<% @backlog_items.each_with_index do |item, index| %>
<% row_class = index%2 == 0 ? 'even' : 'odd' %>
+ <% unless item.completed? %>
+ <% row_class='overage' if item.actual_hours >=
item.estimated_hours %>
+ <% end %>
<% sprint = item.sprint %>
<% product = sprint.product %>
diff --git a/public/stylesheets/lists.css b/public/stylesheets/lists.css
index f6aad1e..87b47b2 100644
--- a/public/stylesheets/lists.css
+++ b/public/stylesheets/lists.css
@@ -113,3 +113,13 @@ table.list tr.odd:hover {
background-color: #ffee87;
color: #000000;
}
+
+table.list tr.overage {
+ background-color: #7f0000;
+ color: #ffff00;
+ font-weight: bold;
+}
+
+table.list tr.overage a {
+ color: #ffffff;
+}
\ No newline at end of file
--
1.6.0.6
_______________________________________________
projxp-devel mailing list
projxp-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/projxp-devel