Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: utils/tests/template/realviews.tmpl

Issue 9728009: Template bug fixes and new features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undid css.status change Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/tests/template/productview_localname.tmpl ('k') | utils/tests/template/run » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/template/realviews.tmpl
diff --git a/utils/tests/template/realviews.tmpl b/utils/tests/template/realviews.tmpl
index e2e9338f2f29b1a6baa78a7bd17f4bb7f160b395..8eff4ae0c60b20046ffca47c4500dcf83af8b78b 100644
--- a/utils/tests/template/realviews.tmpl
+++ b/utils/tests/template/realviews.tmpl
@@ -60,24 +60,24 @@ template DivisionSales(var divisions) {
}
}
<div>
- ${#each divisions}
+ ${#each divisions div}
<div class="division-item">
- <span>${name}</span>
+ <span>${div.name}</span>
<span>-</span>
- <span>${id}</span>
+ <span>${div.id}</span>
</div>
<div>
- ${#each divisions.products}
+ ${#each div.products prod}
<div class="product-item">
<span var=productZippy class="expand-collapse expand">&#9660;</span>
<span class='product-title'>Product</span>
- <span class="product-name">${name}</span>
- <span class="product-users" align=right>${users}&nbsp;users</span>
+ <span class="product-name">${prod.name}</span>
+ <span class="product-users" align=right>${prod.users}&nbsp;users</span>
<div class="show-sales">
- ${#each products.sales}
+ ${#each prod.sales sale}
<div class="sales-item">
- <span>${country}</span>
- <span class="ytd-sales">\$${yearly}</span>
+ <span>${sale.country}</span>
+ <span class="ytd-sales">\$${sale.yearly}</span>
</div>
${/each}
</div>
« no previous file with comments | « utils/tests/template/productview_localname.tmpl ('k') | utils/tests/template/run » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698