OSDN Git Service

Fixed: empty ul tag for issue updates with notes only (#5281).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Apr 2010 17:10:26 +0000 (17:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Apr 2010 17:10:26 +0000 (17:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3666 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_history.rhtml

index b57c543..7459eb3 100644 (file)
@@ -6,11 +6,13 @@
     <%= content_tag('a', '', :name => "note-#{journal.indice}")%>
                <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %></h4>
     
-    <ul>
-    <% for detail in journal.details %>
+    <% if journal.details.any? %>
+    <ul class="details">
+      <% for detail in journal.details %>
        <li><%= show_detail(detail) %></li>
-    <% end %>
+      <% end %>
     </ul>
+    <% end %>
     <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %>
   </div>
   <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>