]> source.dussan.org Git - redmine.git/commitdiff
Merged r4057 from trunk.
authorEric Davis <edavis@littlestreamsoftware.com>
Mon, 20 Sep 2010 03:58:38 +0000 (03:58 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Mon, 20 Sep 2010 03:58:38 +0000 (03:58 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4127 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/journals_helper.rb
app/views/issues/_history.rhtml

index c8d53f253beda17770dedb6dcc5c446162fa1b82..990bfb1e574944cdd7e728c7a06656b5088db10a 100644 (file)
@@ -39,4 +39,11 @@ module JournalsHelper
     onclick = "new Ajax.Request('#{url_for(url)}', {asynchronous:true, evalScripts:true, method:'get'}); return false;"
     link_to text, '#', options.merge(:onclick => onclick)
   end
+  
+  def css_journal_classes(journal)
+    s = 'journal'
+    s << ' has-notes' unless journal.notes.blank?
+    s << ' has-details' unless journal.details.blank?
+    s
+  end
 end
index a95cbf81c0fb79ac9507da41d477f2cc033d5a06..4ea2dd2ac3917993a2f201db180206691db8facd 100644 (file)
@@ -1,6 +1,6 @@
 <% reply_links = authorize_for('issues', 'edit') -%>
 <% for journal in journals %>
-  <div id="change-<%= journal.id %>" class="journal">
+  <div id="change-<%= journal.id %>" class="<%= css_journal_classes(journal) %>">
     <h4><div class="journal-link"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div>
     <%= avatar(journal.user, :size => "24") %>
     <%= content_tag('a', '', :name => "note-#{journal.indice}")%>