<% File.clicks %> |
macro rendering the number of requests so far
for a file-object |
Sourcecode in File/macros.js:
1: function clicks_macro(param) { 2: if (!this.requestcnt) 3: res.write(param.no ? param.no : getMessage("File.download.no")); 4: else if (this.requestcnt == 1) 5: res.write(param.one ? param.one : getMessage("File.download.one")); 6: else { 7: res.write(this.requestcnt); 8: res.write(param.more ? param.more : " " + getMessage("File.download.more")); 9: } 10: return; 11: } |