[donrails commit] r398 - some fix

0 views
Skip to first unread message

codesite...@google.com

unread,
Apr 5, 2009, 8:16:54 AM4/5/09
to donr...@googlegroups.com
Author: yasuhiro
Date: Sun Apr 5 05:04:26 2009
New Revision: 398

Modified:
trunk/app/helpers/application_helper.rb

Log:
some fix

Modified: trunk/app/helpers/application_helper.rb
==============================================================================
--- trunk/app/helpers/application_helper.rb (original)
+++ trunk/app/helpers/application_helper.rb Sun Apr 5 05:04:26 2009
@@ -362,11 +362,11 @@
i += 1
content += link_to(category.name, {:controller => 'notes', :action
=> :show_category, :id => category.id})
content += '(' + category.articles.size.to_s
- content += ': ' + category.description if
category.description.size > 1
+ content += ': ' + category.description if ( category.description
&& category.description.length > 1)
content += ') '
if category.direct_children.size >= 1
content += ' > '
- content +=
display_categories_roots_description_sub(category.all_children)
+ content +=
display_categories_roots_description_sub(category.direct_children)
end
end
end

Reply all
Reply to author
Forward
0 new messages