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

Delta Between Two Patch Sets: templates/default.tmpl

Issue 5636796054503424: Issue 1170 - [adblockplus.org Anwiki to CMS migration] Migrate content (Closed)
Left Patch Set: Brought in changes to website made over last few months. Created Jan. 19, 2015, 12:18 a.m.
Right Patch Set: Remove includes/common.tmpl which is no longer required. Created March 7, 2015, 7:01 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
« no previous file with change/comment | « static/img/sprite-index.png ('k') | templates/minimal.tmpl » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 {% set index_page = (pagedata == "<? include index ?>\n") %} 1 {#
2 # This file is part of the Adblock Plus website,
3 # Copyright (C) 2006-2015 Eyeo GmbH
4 #
5 # Adblock Plus is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License version 3 as
7 # published by the Free Software Foundation.
8 #
9 # Adblock Plus is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 #}
17
2 <!DOCTYPE html> 18 <!DOCTYPE html>
3 <html lang="{{locale}}" dir="{{"rtl" if config.has_option("rtl", locale) else "l tr"}}" itemscope="itemscope" itemtype="http://schema.org/WebPage"> 19 <html lang="{{locale}}" dir="{{"rtl" if config.has_option("rtl", locale) else "l tr"}}" itemscope="itemscope" itemtype="http://schema.org/WebPage">
4 <head> 20 <head>
5 <title>{{title|translate}}</title> 21 <title>{{title|translate}}</title>
6 22
7 <meta name="viewport" content="width=device-width, initial-scale=1"> 23 <meta name="viewport" content="width=device-width, initial-scale=1">
8 <link rel="stylesheet" href="/css/main.css" class="cssfx"> 24 <link rel="stylesheet" href="/css/main.css" class="cssfx">
9 <link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 40.5e m)" class="cssfx"> 25 <link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 40.5e m)" class="cssfx">
10 <link rel="stylesheet" href="/css/main-mobile.css" media="screen and (max-wi dth: 40.5em)"> 26 <link rel="stylesheet" href="/css/main-mobile.css" media="screen and (max-wi dth: 40.5em)">
11 <noscript> 27 <noscript>
12 <link rel="stylesheet" href="/css/noscript-desktop.css" media="(min-width: 40.5em)"/> 28 <link rel="stylesheet" href="/css/noscript-desktop.css" media="(min-width: 40.5em)"/>
13 <link rel="stylesheet" href="/css/noscript-mobile.css" media="screen and ( max-width: 40.5em)"/> 29 <link rel="stylesheet" href="/css/noscript-mobile.css" media="screen and ( max-width: 40.5em)"/>
14 </noscript> 30 </noscript>
15 31
16 <link rel="canonical" href="https://adblockplus.org/{{not index_page and pag e or ""}}"> 32 <link rel="canonical" href="https://adblockplus.org/{{page}}">
Sebastian Noack 2015/02/13 17:51:49 I'd rather use if/else instead and/or here. This m
kzar 2015/02/20 14:55:18 Done.
17 33
18 <!--[if lt IE 7]> 34 <!--[if lt IE 7]>
19 <script src="/js/vendor/DD_belatedPNG.js"></script> 35 <script src="/js/vendor/DD_belatedPNG.js"></script>
20 <script>DD_belatedPNG.fix(".sprite");</script> 36 <script>DD_belatedPNG.fix(".sprite");</script>
21 <![endif]--> 37 <![endif]-->
22 <!--[if lt IE 9]> 38 <!--[if lt IE 9]>
23 <script src="/js/vendor/html5shiv.js"></script> 39 <script src="/js/vendor/html5shiv.js"></script>
24 <script src="/js/vendor/respond.min.js"></script> 40 <script src="/js/vendor/respond.min.js"></script>
25 <![endif]--> 41 <![endif]-->
26 <!--[if lt IE 10]><script src="/js/vendor/cssfx.min.js"></script><![endif]-- > 42 <!--[if lt IE 10]><script src="/js/vendor/cssfx.min.js"></script><![endif]-- >
(...skipping 13 matching lines...) Expand all
40 <li class="selected">{{name|translate("menu")}}</li> 56 <li class="selected">{{name|translate("menu")}}</li>
41 {% else %} 57 {% else %}
42 <li>{{name|linkify}}{{name|translate("menu")}}</a></li> 58 <li>{{name|linkify}}{{name|translate("menu")}}</a></li>
43 {% endif %} 59 {% endif %}
44 {% endmacro %} 60 {% endmacro %}
45 61
46 <header> 62 <header>
47 <a id="logo" class="sprite" itemprop="image" href="/"></a> 63 <a id="logo" class="sprite" itemprop="image" href="/"></a>
48 <nav> 64 <nav>
49 <ul> 65 <ul>
50 {% if index_page %} 66 {% if localefile == "index" %}
51 <li class="selected first">{{"installation"|translate("menu")}}</li> 67 <li class="selected first">{{"installation"|translate("menu")}}</li>
52 {% else %} 68 {% else %}
53 <li class="install-link first">{{"index"|linkify}}{{"installation"|t ranslate("menu")}} <span class="sprite install-link-icon"></span></a></li> 69 <li class="install-link first">{{"index"|linkify}}{{"installation"|t ranslate("menu")}} <span class="sprite install-link-icon"></span></a></li>
54 {% endif %} 70 {% endif %}
55 {% for name in ["about", "features", "bugs", "contribute"] %} 71 {% for name in ["about", "features", "bugs", "contribute"] %}
56 {{pageitem(name)}} 72 {{pageitem(name)}}
57 {% endfor %} 73 {% endfor %}
58 <li id="search"> 74 <li id="search">
59 <form action="https://www.google.com/cse" id="search-box"> 75 <form action="https://www.google.com/cse" id="search-box">
60 <input name="cx" value="001104437084080304350:n8odfuv0gvi" type="h idden"> 76 <input name="cx" value="001104437084080304350:n8odfuv0gvi" type="h idden">
(...skipping 17 matching lines...) Expand all
78 <div id="flag-{{lang}}" class="flag sprite"></div>{{config.g et("langnames", lang)}} 94 <div id="flag-{{lang}}" class="flag sprite"></div>{{config.g et("langnames", lang)}}
79 </a> 95 </a>
80 </li> 96 </li>
81 {% endfor %} 97 {% endfor %}
82 </ul> 98 </ul>
83 </li> 99 </li>
84 </ul> 100 </ul>
85 </nav> 101 </nav>
86 </header> 102 </header>
87 103
88 <div id="content" class="{{page}}"> 104 <div id="content" {% if localefile == "index" %}class="{{page}}"{% endif %}>
89 {% if not noheading %} 105 {% if not noheading %}
90 <h1>{{title|translate}}</h1> 106 <h1>{{title|translate}}</h1>
91 {% endif %} 107 {% endif %}
92 108
93 {% if not notoc %} 109 {% if not notoc %}
94 {% macro toc(toclist) %} 110 {% macro toc(toclist) %}
95 <ul> 111 <ul>
96 {% for item in toclist %} 112 {% for item in toclist %}
97 <li> 113 <li>
98 <a href="#{{item.anchor}}">{{item.title}}</a> 114 <a href="#{{item.anchor}}">{{item.title}}</a>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p lus.google.com/110020691898167279887"></a> 176 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p lus.google.com/110020691898167279887"></a>
161 </li> 177 </li>
162 </ul> 178 </ul>
163 </section> 179 </section>
164 </div> 180 </div>
165 </footer> 181 </footer>
166 182
167 <script src="/js/main.js"></script> 183 <script src="/js/main.js"></script>
168 </body> 184 </body>
169 </html> 185 </html>
LEFTRIGHT

Powered by Google App Engine
This is Rietveld