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

Unified Diff: chrome/common/extensions/docs/templates/private/table_of_contents_items.html

Issue 102593005: Clean patch with DCC static content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests for sidenav_data_source Created 7 years 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
Index: chrome/common/extensions/docs/templates/private/table_of_contents_items.html
diff --git a/chrome/common/extensions/docs/templates/private/table_of_contents_items.html b/chrome/common/extensions/docs/templates/private/table_of_contents_items.html
index d987a1d0ef0e594ae9b1c7852b73f752e888269e..f3484ef87e639fb643a79b89455fcb38e7c7b9b3 100644
--- a/chrome/common/extensions/docs/templates/private/table_of_contents_items.html
+++ b/chrome/common/extensions/docs/templates/private/table_of_contents_items.html
@@ -1,10 +1,24 @@
-<ol>
- {{#i:items}}
- <li {{?i.separator}}class="separator"{{/}}>
- <a href="#{{i.link}}"
- data-list-item
- {{#a:i.attributes}}{{a.key}}="{{a.value}}"{{/}}>{{{i.title}}}</a>
- {{?i.subheadings +partials.table_of_contents_items items:i.subheadings /}}
+<ol class="toc">
+ {{#l0:items}}
+ <li class="toplevel"><a data-list-item href="#{{l0.link}}"
+ {{#a0:l0.attributes}}{{a0.key}}="{{a0.value}}"{{/}}>{{{l0.title}}}</a>
+ {{?l0.subheadings}}
+ <ol class="toc">
+ {{#l1:l0.subheadings}}
+ <li><a data-list-item href="#{{l1.link}}"
+ {{#a1:l1.attributes}}{{a1.key}}="{{a1.value}}"{{/}}>{{{l1.title}}}</a>
+ {{?l1.subheadings}}
+ <ol class="toc">
+ {{#l2:l1.subheadings}}
+ <li><a data-list-item href="#{{l2.link}}"
+ {{#a2:l2.attributes}}{{a2.key}}="{{a2.value}}"{{/}}>{{{l2.title}}}</a></li>
+ {{/l1.subheadings}}
+ </ol>
+ {{/l1.subheadings}}
+ </li>
+ {{/l0.subheadings}}
+ </ol>
+ {{/l0.subheadings}}
</li>
{{/items}}
</ol>

Powered by Google App Engine
This is Rietveld 408576698