The email includes the text from the blocker message if an item is
marked as a blocker.
Signed-off-by: Darryl L. Pierce <mcpierce(a)gmail.com>
---
app/views/user_mailer/daily_updates.html.erb | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/app/views/user_mailer/daily_updates.html.erb
b/app/views/user_mailer/daily_updates.html.erb
index 7b6d5b3..e7d05fb 100644
--- a/app/views/user_mailer/daily_updates.html.erb
+++ b/app/views/user_mailer/daily_updates.html.erb
@@ -9,12 +9,12 @@ Tasks performed:
<% end %>
<% end %>
-Open backlog items:
+Open backlog items (* indicates a blocked item):
<% if !@open_items || @open_items.empty? %>
None.
<% else %>
<% @open_items.each_with_index do |item, index| %>
- <%= "#{index + 1} #{item.user_story.title}" %>
+ <%= "#{index + 1} #{item.user_story.title} #{item.blocked? ? '*' :
''}" %>
<% end %>
<% end %>
@@ -26,3 +26,15 @@ Closed backlog items:
<%= "#{index + 1} #{item.user_story.title}" %>
<% end %>
<% end %>
+
+Blocked backlog items:
+<% if !@open_items || @open_items.empty? %>
+ None.
+<% else %>
+ <% @open_items.each_with_index do |item, index| %>
+ <% if item.blocked? %>
+ <%= "#{index + 1} #{item.user_story.title}:" %>
+ <%= RedCloth.new(item.blocker_message.body).to_html %>
+ <% end %>
+ <% end %>
+<% end %>
--
1.6.0.6