<% User.sysmgr_lastitems %> |
macro renders links to last items of this user |
Sourcecode in User/sysmgr_macros.js:
1: function sysmgr_lastitems_macro(param) { 2: var max = param.max ? parseInt(param.max) : 5; 3: var coll = this[param.what]; 4: var cnt = Math.min(coll.count(), max); 5: for (var i=0; i<cnt; i++) { 6: Html.link({href: coll.get(i).href()}, "#" + (coll.count()-i) + " "); 7: } 8: return; 9: } |