hstove / issue_stats

Analyze and compare how long it takes for Github issues to be closed.
issuestats.com
MIT License
184 stars 13 forks source link

Decrease horizontal width #23

Closed brettwooldridge closed 9 years ago

brettwooldridge commented 9 years ago

Pages with lots of badges are typically hard-pressed for horizontal real-estate, it would be great if the badge text were shortened.

From

"Issues Closed In|about 9 hours"

to →

"issue closure|9 hrs"

From

"Pull Requests Closed In|30 minutes"

to →

"pull requests in|30 min" ... or "pull requests|in 30 min" ... or "pull closure|30 min" ... or "pulls|in 30 min"

Basically:

"about" → dropped "less than a minute" → "< 1 min" "minute(s)" → "min" (both singular and plural) "hour(s)" → "hr/hrs" "day(s)" → "d" (both singular and plural) "month(s)" → "mon" (both singular and plural) "year(s)" → "yr/yrs"

hstove commented 9 years ago

Since there are already multiple styles of badges available (flat and regular), this should be relatively easy to do. I don't have the time to do this unfortunately, but could point you in the right direction if you want to try contributing.

brettwooldridge commented 9 years ago

Sure, point away :+1:

brettwooldridge commented 9 years ago

I have submitted a pull request for your review.