Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbaa3de

Browse files
committed
add some simple download count display
1 parent 88fad9a commit cbaa3de

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/assets/views/builder/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<dd>{{dataset.description}}</dd>
99
<dt>Published:</dt>
1010
<dd date-from-now="dataset.published_at">{{dataset.published_at}}</dd>
11+
<dt>Snatched:</dt>
12+
<dd>{{dataset.stats_info['downloaded']}} times</dd>
1113
</dl>
1214
</div>
1315

app/js/models.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ function Dataset(data) {
7171
'os',
7272
'description',
7373
'uuid',
74-
'published_at'
74+
'published_at',
75+
'stats_info'
7576
];
7677

7778
for (i in proxy_attrs) {

0 commit comments

Comments
 (0)