]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/_trace.rhtml
fix import bug, make points commify
[rails.git] / app / views / trace / _trace.rhtml
index 7ba19395b2e886cff186d0aefdbd0505e4e8ad50..f6c00448be28fd93fc4060f35759ad3cecf96d7a 100644 (file)
@@ -10,7 +10,7 @@
   <td class="<%= cl %>"><%= link_to trace.name, {:controller => 'trace', :action => 'view', :display_name => trace.user.display_name, :id => trace.id} %>
     <span class="gpxsummary" title="<%= trace.timestamp %>"> ... 
       <% if trace.inserted %> 
-      (<%= trace.size %> points)
+      (<%= trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %> points)
       <% end %> 
       ... <%= time_ago_in_words( trace.timestamp ) %>  ago</span>
      <%= link_to 'more', {:controller => 'trace', :action => 'view', :display_name => trace.user.display_name, :id => trace.id} %> /