Browse files

Don't bother showing 0-value download counts

That always means that the request just didn't work for some reason
  • Loading branch information...
1 parent 8810520 commit 85ee48681f9e5a722ca595a23bcbf8e31c6f5305 @isaacs isaacs committed Oct 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 templates/download-counts.ejs
View
6 templates/download-counts.ejs
@@ -2,13 +2,13 @@
<table class="downloads">
<%
var content = []
- if (day) {
+ if (day && day !== '0') {
content.push([day, ' downloads in the last day'])
}
- if (week) {
+ if (week && week !== '0') {
content.push([week, ' downloads in the last week'])
}
- if (month) {
+ if (month && month !== '0') {
content.push([month, ' downloads in the last month'])
}
%>

0 comments on commit 85ee486

Please sign in to comment.