From 5d517f7c49273a0fb0660b741b9bdb90e9cb797e Mon Sep 17 00:00:00 2001 From: Michal Hrusecky Date: Fri, 18 Dec 2009 17:56:16 +0100 Subject: [PATCH 1/4] Showing goals in stories page in agile_pm Stories can belong to the goal but this relation is nowhere displayed. With this commit goal is shown in stories listing. --- extensions/agile_pm/views/stories/_story.html.erb | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/extensions/agile_pm/views/stories/_story.html.erb b/extensions/agile_pm/views/stories/_story.html.erb index 9c3a264..8369f77 100644 --- a/extensions/agile_pm/views/stories/_story.html.erb +++ b/extensions/agile_pm/views/stories/_story.html.erb @@ -15,6 +15,11 @@ :method => :get %>
<%= "S#{story.id} – " + story_status(story) %>
+ <% if story.goal -%> +
Goal: + <%= h(truncate(story.goal.title, :length => 50)) %> +
+ <% end -%> -- 1.6.6.rc3