projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86cf11d
)
examples/view/xtemplate.html
author
Alan Knowles
<alan@akbkhome.com>
Sat, 7 Apr 2012 06:35:36 +0000
(14:35 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sat, 7 Apr 2012 06:35:36 +0000
(14:35 +0800)
examples/view/xtemplate.html
patch
|
blob
|
history
diff --git
a/examples/view/xtemplate.html
b/examples/view/xtemplate.html
index
d14729b
..
fd1f8e6
100644
(file)
--- a/
examples/view/xtemplate.html
+++ b/
examples/view/xtemplate.html
@@
-13,8
+13,15
@@
Roo.onReady(function() {
var tpl = new Roo.XTemplate({
- html : '<tpl for="parray"><li>{pa.format:("Y-m-d")}</li></tpl>'
-
+ html : '<tpl for="parray">
+ '<li>{pa.format:("Y-m-d")}</li>' +
+
+ '<tpl if="first_of_day * 1">'
+ '<li class="change-log-day"><a name="changedate-{changedate.format:('Y-m-d')}">{changedate.format:('d / M / Y')}</a></li>' +
+ '</tpl>'
+ '</tpl>';
+
+
});
tpl.append(Roo.get('body'),{