Refactor: move method to model. (references r4057)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4062 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
cbe266079e
commit
db11030410
3 files changed
+9
-8
No files matched your search
@@ -39,11 +39,4 @@ 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
|
||||
Reference in new issue
Block a user