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

Unified Diff: utils/tests/template/top_searches2.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/top_searches.tmpl ('k') | utils/tests/template/top_searches_css.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/template/top_searches2.tmpl
diff --git a/utils/tests/template/top_searches2.tmpl b/utils/tests/template/top_searches2.tmpl
index 1bb17fb374963b200a308bac7b41876f8b1d79ec..e53df9e3388386b40cb2415675ec83a82fc07105 100644
--- a/utils/tests/template/top_searches2.tmpl
+++ b/utils/tests/template/top_searches2.tmpl
@@ -27,19 +27,19 @@ template TopSearches(var persons) {
}
}
<div class="all-list">
- ${#each persons}
+ ${#each persons person}
<div class="person-item">
- <span>${name},&nbsp;</span>
+ <span>${person.name},&nbsp;</span>
<span>age&nbsp;=&nbsp;</span>
- <span>${age}</span>
+ <span>${person.age}</span>
</div>
<div>
- ${#each persons.searches}
- <div class="search-item">query=${query},&nbsp;rank=${rank},&nbsp;total=${total}</div>
- ${#each searches.metrics}
+ ${#each person.searches search}
+ <div class="search-item">query=${search.query},&nbsp;rank=${search.rank},&nbsp;total=${search.total}</div>
+ ${#each search.metrics metric}
<div class="metrics-item">
- <span>${country}</span>
- <span class="total-hits">${quantity}</span>
+ <span>${metric.country}</span>
+ <span class="total-hits">${metric.quantity}</span>
</div>
${/each}
${/each}
« no previous file with comments | « utils/tests/template/top_searches.tmpl ('k') | utils/tests/template/top_searches_css.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698