Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 85ee48681f9e5a722ca595a23bcbf8e31c6f5305 1 parent 8810520
isaacs isaacs authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 templates/download-counts.ejs
6 templates/download-counts.ejs
View
@@ -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'])
}
%>
Please sign in to comment.
Something went wrong with that request. Please try again.