summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-06-26 23:36:50 -0400
committerDonald Stufft <donald@stufft.io>2013-06-26 23:36:50 -0400
commit471874691f8cf8011b39ad1092688ceea03beebc (patch)
tree022c9414da89dd9da096390b08f138fbfaec3703 /templates
parent02197b38e0f854f88ec4a52ee3fe3ad5db471b99 (diff)
downloaddecorator-471874691f8cf8011b39ad1092688ceea03beebc.tar.gz
Enable (hidden) download counts
Diffstat (limited to 'templates')
-rw-r--r--templates/display.pt14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/display.pt b/templates/display.pt
index d930e1d..466e0be 100644
--- a/templates/display.pt
+++ b/templates/display.pt
@@ -99,6 +99,20 @@
<tr><td id="last" colspan="6"></td></tr>
</table>
+<ul style="display: none;" class="nodot" tal:condition="data/download_counts | nothing">
+ <li><strong>Downloads:</strong></li>
+ <li>
+ <span tal:content="data/download_counts/day" /> downloads in the last day
+ </li>
+ <!-- will be displayed when we have enough data -->
+ <li style="display: none;">
+ <span tal:content="data/download_counts/day" /> downloads in the last week
+ </li>
+ <li style="display: none;">
+ <span tal:content="data/download_counts/day" /> downloads in the last month
+ </li>
+</ul>
+
<ul class="nodot">
<li tal:condition="data/release/author | nothing">
<strong>Author:</strong>