]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/issues_helper.rb
Localisation updates from https://translatewiki.net.
[rails.git] / app / helpers / issues_helper.rb
index 4ecd7001af131074ea3ca18de9fc4186e9ede2fe..43ca98c9134c5e13d1547570da74867c2dc42d45 100644 (file)
@@ -29,7 +29,7 @@ module IssuesHelper
     count = Issue.visible_to(current_user).open.limit(100).size
     if count > 99
       content_tag(:span, "99+", :class => "count-number")
     count = Issue.visible_to(current_user).open.limit(100).size
     if count > 99
       content_tag(:span, "99+", :class => "count-number")
-    elsif count > 0
+    elsif count.positive?
       content_tag(:span, count, :class => "count-number")
     end
   end
       content_tag(:span, count, :class => "count-number")
     end
   end