Add closed class if issue is closed

pull/6827/head
Mark Maglana 15 years ago
parent 8a299b4841
commit 374667e713
  1. 2
      app/helpers/stories_helper.rb
  2. 2
      app/views/stories/_story.html.erb

@ -14,7 +14,7 @@ module StoriesHelper
end
def mark_if_closed(story)
!story.new_record? && story.issue.status.is_closed? ? "closed" : ""
!story.new_record? && story.status.is_closed? ? "closed" : ""
end
def story_points_or_empty(story)

@ -1,4 +1,4 @@
<li class="story" id="<%= story_html_id_or_empty(story) %>">
<li class="story <%= mark_if_closed(story) %>" id="<%= story_html_id_or_empty(story) %>">
<input type="checkbox" class="checkbox"/>
<div class="spinner"> </div>
<div class="id"><%= record_id_or_empty(story) %></div>

Loading…
Cancel
Save