If the item in the list is unowned, and the current user is allowed to
accept the item, then the item will contain a link to accept it.
Otherwise, it says "Nobody".
Signed-off-by: Darryl L. Pierce <mcpierce(a)gmail.com>
---
app/views/items/_list.html.erb | 12 +++++++++++-
doc/ChangeLog | 2 +-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/app/views/items/_list.html.erb b/app/views/items/_list.html.erb
index e3582ff..056a451 100644
--- a/app/views/items/_list.html.erb
+++ b/app/views/items/_list.html.erb
@@ -32,7 +32,17 @@
</td>
<% unless @this_user %>
- <td><%= link_to(item.owner.display_name, user_path(item.owner)) if
item.owner %></td>
+ <td>
+ <% if item.owner %>
+ <%= link_to(item.owner.display_name, user_path(item.owner)) %>
+ <% else %>
+ <% if item.can_accept?(@user) %>
+ <%= link_to "Accept item...", accept_item_path(item), :confirm =>
"Accept this item? Are you sure?" %>
+ <% else %>
+ Nobody
+ <% end %>
+ <% end %>
+ </td>
<% end %>
<td><%= show_hours_as_ear(item) %>
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 6ad0279..aeb4fce 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,13 +1,13 @@
Change Log (0.3.0):
* #156 - Backlog items can be marked as blocked.
* #167 - Blocker messages are included in the daily updates email.
- * #175 - Fixed display of products for an unapproved project. (BUG)
* #176 - Added a breadcrumb trail to the navigation bar.
* #177 - Epics cannot be created for unapproved projects.
* #178 - A product with no user stories cannot define a sprint.
* #179 - The sprint list page shows the number of backlog items per sprint.
* #181 - The estimated/actual/remaining hours are shown on the sprint list page.
* #182 - The member count on the sprint list goes to the member list page.
+ * #183 - Unown items have an accept link on the sprint backlog page.
* #199 - Admins can approve or reject proposed projects.
* #202 - Project admins are emailed when a new project is requested.
* #205 - Blocked backlog items show the blocker message on the details page.
--
1.6.0.6