Commit 0536139593b12db6310a9c6e5d28de21dc28e57f
1 parent
b1b40ef3
Exists in
staging
and in
4 other branches
Improve processed tasks view
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
app/views/tasks/processed.html.erb
@@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
35 | <% else %> | 35 | <% else %> |
36 | <ul class="task-list"> | 36 | <ul class="task-list"> |
37 | <% @tasks.each do |item| %> | 37 | <% @tasks.each do |item| %> |
38 | - <li class="task"> | 38 | + <li class="task status-<%= item.status%>"> |
39 | <div class="title"> | 39 | <div class="title"> |
40 | <strong><%= task_information(item) %></strong> <br/> | 40 | <strong><%= task_information(item) %></strong> <br/> |
41 | </div> | 41 | </div> |
public/stylesheets/tasks.css
@@ -62,6 +62,15 @@ | @@ -62,6 +62,15 @@ | ||
62 | padding: 12px; | 62 | padding: 12px; |
63 | } | 63 | } |
64 | 64 | ||
65 | +.task-processed .task.status-3 { | ||
66 | + background-color: rgb(255, 203, 203); | ||
67 | +} | ||
68 | + | ||
69 | +.task-processed .task.status-2 { | ||
70 | + background-color: rgb(205, 252, 218); | ||
71 | +} | ||
72 | + | ||
73 | + | ||
65 | .task-processed ul { | 74 | .task-processed ul { |
66 | padding: 0; | 75 | padding: 0; |
67 | } | 76 | } |