Skip to content

Show actual commit count on project dashboard

Matthias Käppler requested to merge github/fork/dblessing/commit_counter into master

Created by: dblessing

What does this MR do?

Instead of displaying the rounded commit count this shows the actual commit count on the project dashboard. Also added the number_with_delimiter helper to show the numbers in a nice, human-readable format.

Why was this MR needed?

The rounded commit count is great for a quick display of the commits, such as for the public project list. However, for the dashboard it is overly simplified. When a project has between 1,000 and 5,000 commits you just see '1000+ commits'. There is no reason we shouldn't show the complete commit count here.

Screenshots

Before: screen shot 2014-04-14 at 11 27 02 am

After: screen shot 2014-04-14 at 11 59 08 am

Merge request reports

Loading