Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: tests/test_site/pages/sitemap.tmpl

Issue 29741581: Fixes 6546 - Swap the contents of default.tmpl and empty.tmpl in the test suite (Closed)
Left Patch Set: Created April 3, 2018, 2:19 p.m.
Right Patch Set: Remove unnecessary template=default metadata and adjust the expected output for sitemap accordingly Created April 3, 2018, 4:34 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 template = default
2 product = foo 1 product = foo
3 title = test_metadata 2 title = test_metadata
4 tags = [popular, bar] 3 tags = [popular, bar]
5 <h1> Unfiltered </h1> 4 <h1> Unfiltered </h1>
6 <ul> 5 <ul>
7 {%- for unfiltered_page in get_pages_metadata()|sort %} 6 {%- for unfiltered_page in get_pages_metadata()|sort %}
8 <li>title : {{ unfiltered_page['page']}} </li> 7 <li>title : {{ unfiltered_page['page']}} </li>
9 {%- endfor %} 8 {%- endfor %}
10 </ul> 9 </ul>
11 10
12 <h1> Filtered </h1> 11 <h1> Filtered </h1>
13 <ul> 12 <ul>
14 {%- for filtered_page in get_pages_metadata({'tags': ['popular', 'bar']})|so rt -%} 13 {%- for filtered_page in get_pages_metadata({'tags': ['popular', 'bar']})|so rt -%}
15 <li>title : {{ filtered_page['page'] }} </li> 14 <li>title : {{ filtered_page['page'] }} </li>
16 {%- endfor %} 15 {%- endfor %}
17 </ul> 16 </ul>
18 17
19 <h1> String Filter For Listy Option </h1> 18 <h1> String Filter For Listy Option </h1>
20 <ul> 19 <ul>
21 {%- for filtered_page in get_pages_metadata({'tags': 'popular'})|sort -%} 20 {%- for filtered_page in get_pages_metadata({'tags': 'popular'})|sort -%}
22 <li>title : {{ filtered_page['page'] }} </li> 21 <li>title : {{ filtered_page['page'] }} </li>
23 {%- endfor %} 22 {%- endfor %}
24 </ul> 23 </ul>
LEFTRIGHT

Powered by Google App Engine
This is Rietveld