forked from dim/retrospectiva
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AgilePM: display stories in goal view [#742]. Fixed spec.
- Loading branch information
Dimitrij Denissenko
committed
Dec 29, 2009
1 parent
0817f73
commit ca59ff0
Showing
7 changed files
with
38 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
<h1><%=h truncate(@goal.title) %></h1> | ||
|
||
<% if @goal.description.present? -%> | ||
<%= markup @goal.description %> | ||
<% else -%> | ||
<p><%=_ 'No description' %></p> | ||
<% end -%> | ||
<div class="agile-pm"> | ||
<h1><%=h truncate(@goal.title) %></h1> | ||
|
||
<% if @goal.description.present? -%> | ||
<%= markup @goal.description %> | ||
<% else -%> | ||
<p><%=_ 'No description' %></p> | ||
<% end -%> | ||
<% if permitted?(:stories, :view) -%> | ||
<h3><%=_ 'Stories' %></h3> | ||
<ul class="stories"> | ||
<% @goal.stories.each do |story| -%> | ||
<%= content_tag :li, h(story.title), :class => story.current_status %> | ||
<% end -%> | ||
</ul> | ||
<% end -%> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters