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

Side by Side Diff: templates/default.tmpl

Issue 6250108710551552: Issue 2136 - Update web.adblockplus.org content for specifying default translations inline (Closed)
Patch Set: Created March 12, 2015, 9:29 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « includes/subscriptionList.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {# 1 {#
2 # This file is part of the Adblock Plus website, 2 # This file is part of the Adblock Plus website,
3 # Copyright (C) 2006-2015 Eyeo GmbH 3 # Copyright (C) 2006-2015 Eyeo GmbH
4 # 4 #
5 # Adblock Plus is free software: you can redistribute it and/or modify 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 6 # it under the terms of the GNU General Public License version 3 as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
8 # 8 #
9 # Adblock Plus is distributed in the hope that it will be useful, 9 # Adblock Plus is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details. 12 # GNU General Public License for more details.
13 # 13 #
14 # You should have received a copy of the GNU General Public License 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/>. 15 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 #} 16 #}
17 17
18 <!DOCTYPE html> 18 <!DOCTYPE html>
19 <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">
20 <head> 20 <head>
21 <title>{{title|translate}}</title> 21 <title>{{title|translate("title")}}</title>
22 22
23 <meta name="viewport" content="width=device-width, initial-scale=1"> 23 <meta name="viewport" content="width=device-width, initial-scale=1">
24 <link rel="stylesheet" href="/css/main.css" class="cssfx"> 24 <link rel="stylesheet" href="/css/main.css" class="cssfx">
25 <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">
26 <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)">
27 <noscript> 27 <noscript>
28 <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)"/>
29 <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)"/>
30 </noscript> 30 </noscript>
31 31
(...skipping 14 matching lines...) Expand all
46 <![endif]--> 46 <![endif]-->
47 47
48 {% block head %} 48 {% block head %}
49 {{head|safe}} 49 {{head|safe}}
50 {% endblock %} 50 {% endblock %}
51 </head> 51 </head>
52 52
53 <body> 53 <body>
54 {% macro pageitem(name) %} 54 {% macro pageitem(name) %}
55 {% if name == page %} 55 {% if name == page %}
56 <li class="selected">{{name|translate("menu")}}</li> 56 <li class="selected">{{get_string(name, "menu")}}</li>
57 {% else %} 57 {% else %}
58 <li>{{name|linkify}}{{name|translate("menu")}}</a></li> 58 <li>{{name|linkify}}{{get_string(name, "menu")}}</a></li>
59 {% endif %} 59 {% endif %}
60 {% endmacro %} 60 {% endmacro %}
61 61
62 <header> 62 <header>
63 <a id="logo" class="sprite" itemprop="image" href="/"></a> 63 <a id="logo" class="sprite" itemprop="image" href="/"></a>
64 <nav> 64 <nav>
65 <ul> 65 <ul>
66 {% if localefile == "index" %} 66 {% if localefile == "index" %}
67 <li class="selected first">{{"installation"|translate("menu")}}</li> 67 <li class="selected first">{{get_string("installation", "menu")}}</l i>
68 {% else %} 68 {% else %}
69 <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}}{{get_string("inst allation", "menu")}} <span class="sprite install-link-icon"></span></a></li>
70 {% endif %} 70 {% endif %}
71 {% for name in ["about", "features", "bugs", "contribute"] %} 71 {% for name in ["about", "features", "bugs", "contribute"] %}
72 {{pageitem(name)}} 72 {{pageitem(name)}}
73 {% endfor %} 73 {% endfor %}
74 <li id="search"> 74 <li id="search">
75 <form action="https://www.google.com/cse" id="search-box"> 75 <form action="https://www.google.com/cse" id="search-box">
76 <input name="cx" value="001104437084080304350:n8odfuv0gvi" type="h idden"> 76 <input name="cx" value="001104437084080304350:n8odfuv0gvi" type="h idden">
77 <input name="ie" value="UTF-8" type="hidden"> 77 <input name="ie" value="UTF-8" type="hidden">
78 <label id="search-field-label-plain" for="search-field">{{"search" |translate("menu")}}</label> 78 <label id="search-field-label-plain" for="search-field">{{get_stri ng("search", "menu")}}</label>
79 <input id="search-field" name="q" type="search"> 79 <input id="search-field" name="q" type="search">
80 <label id="search-field-label-button" for="search-field"> 80 <label id="search-field-label-button" for="search-field">
81 <button id="search-button" type="submit">{{"search"|translate("m enu")}}</button> 81 <button id="search-button" type="submit">{{get_string("search", "menu")}}</button>
82 </label> 82 </label>
83 </form> 83 </form>
84 </li> 84 </li>
85 <li id="language"> 85 <li id="language">
86 <div id="current-language"> 86 <div id="current-language">
87 <div id="flag-{{locale}}" class="flag sprite"></div> 87 <div id="flag-{{locale}}" class="flag sprite"></div>
88 <span id="language-arrow" class="sprite"></span> 88 <span id="language-arrow" class="sprite"></span>
89 </div> 89 </div>
90 <ul id="language-selector"> 90 <ul id="language-selector">
91 {% for lang in available_locales %} 91 {% for lang in available_locales %}
92 <li class="language-entry"> 92 <li class="language-entry">
93 {{page|linkify(lang)}} 93 {{page|linkify(lang)}}
94 <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)}}
95 </a> 95 </a>
96 </li> 96 </li>
97 {% endfor %} 97 {% endfor %}
98 </ul> 98 </ul>
99 </li> 99 </li>
100 </ul> 100 </ul>
101 </nav> 101 </nav>
102 </header> 102 </header>
103 103
104 <div id="content" {% if localefile == "index" %}class="{{page}}"{% endif %}> 104 <div id="content" {% if localefile == "index" %}class="{{page}}"{% endif %}>
105 {% if not noheading %} 105 {% if not noheading %}
106 <h1>{{title|translate}}</h1> 106 <h1>{{title|translate("title")}}</h1>
107 {% endif %} 107 {% endif %}
108 108
109 {% if not notoc %} 109 {% if not notoc %}
110 {% macro toc(toclist) %} 110 {% macro toc(toclist) %}
111 <ul> 111 <ul>
112 {% for item in toclist %} 112 {% for item in toclist %}
113 <li> 113 <li>
114 <a href="#{{item.anchor}}">{{item.title}}</a> 114 <a href="#{{item.anchor}}">{{item.title}}</a>
115 {% if item.subitems %}{{toc(item.subitems)}}{% endif %} 115 {% if item.subitems %}{{toc(item.subitems)}}{% endif %}
116 </li> 116 </li>
(...skipping 11 matching lines...) Expand all
128 128
129 {% block body %} 129 {% block body %}
130 {{body|safe}} 130 {{body|safe}}
131 {% endblock %} 131 {% endblock %}
132 </div> 132 </div>
133 133
134 <footer> 134 <footer>
135 <div id="footer-content"> 135 <div id="footer-content">
136 <nav> 136 <nav>
137 <section class="first"> 137 <section class="first">
138 <h1>{{"resources"|translate("menu")}}</h1> 138 <h1>{{get_string("resources", "menu")}}</h1>
139 <ul> 139 <ul>
140 {% for name in ["acceptable-ads", "documentation", "deployments", "privacy", "impressum"] %} 140 {% for name in ["acceptable-ads", "documentation", "deployments", "privacy", "impressum"] %}
141 {{pageitem(name)}} 141 {{pageitem(name)}}
142 {% endfor %} 142 {% endfor %}
143 </ul> 143 </ul>
144 </section> 144 </section>
145 145
146 <section> 146 <section>
147 <h1>{{"community"|translate("menu")}}</h1> 147 <h1>{{get_string("community", "menu")}}</h1>
148 <ul> 148 <ul>
149 <li><a href="/releases/" hreflang="en">{{"releases"|translate("men u")}}</a></li> 149 <li><a href="/releases/" hreflang="en">{{get_string("releases", "m enu")}}</a></li>
150 <li><a href="/blog/" hreflang="en">{{"blog"|translate("menu")}}</a ></li> 150 <li><a href="/blog/" hreflang="en">{{get_string("blog", "menu")}}< /a></li>
151 <li><a href="/forum/" hreflang="en">{{"forum"|translate("menu")}}< /a></li> 151 <li><a href="/forum/" hreflang="en">{{get_string("forum", "menu")} }</a></li>
152 {{pageitem("development-builds")}} 152 {{pageitem("development-builds")}}
153 </ul> 153 </ul>
154 </section> 154 </section>
155 155
156 <section> 156 <section>
157 <h1>{{"development"|translate("menu")}}</h1> 157 <h1>{{get_string("development", "menu")}}</h1>
158 <ul> 158 <ul>
159 {{pageitem("source")}} 159 {{pageitem("source")}}
160 <li><a href="/category/roadmap/" hreflang="en">{{"roadmap"|transla te("menu")}}</a></li> 160 <li><a href="/category/roadmap/" hreflang="en">{{get_string("roadm ap", "menu")}}</a></li>
161 {{pageitem("tools")}} 161 {{pageitem("tools")}}
162 </ul> 162 </ul>
163 </section> 163 </section>
164 </nav> 164 </nav>
165 165
166 <section id="social"> 166 <section id="social">
167 <h1>{{"follow-us"|translate("menu")}}</h1> 167 <h1>{{get_string("follow-us", "menu")}}</h1>
168 <ul id="social-list"> 168 <ul id="social-list">
169 <li class="social-entry"> 169 <li class="social-entry">
170 <a rel="nofollow" id="social-facebook" class="sprite" href="https: //www.facebook.com/adblockplus"></a> 170 <a rel="nofollow" id="social-facebook" class="sprite" href="https: //www.facebook.com/adblockplus"></a>
171 </li> 171 </li>
172 <li class="social-entry"> 172 <li class="social-entry">
173 <a rel="nofollow" id="social-twitter" class="sprite" href="https:/ /twitter.com/adblockplus"></a> 173 <a rel="nofollow" id="social-twitter" class="sprite" href="https:/ /twitter.com/adblockplus"></a>
174 </li> 174 </li>
175 <li class="social-entry"> 175 <li class="social-entry">
176 <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>
177 </li> 177 </li>
178 </ul> 178 </ul>
179 </section> 179 </section>
180 </div> 180 </div>
181 </footer> 181 </footer>
182 182
183 <script src="/js/main.js"></script> 183 <script src="/js/main.js"></script>
184 </body> 184 </body>
185 </html> 185 </html>
OLDNEW
« no previous file with comments | « includes/subscriptionList.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld