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

Side by Side Diff: templates/default.tmpl

Issue 29611624: Issue 6047 - Updated templates and uninstalled pages (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Addressed #14 Created Dec. 14, 2017, 6:39 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
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-present eyeo GmbH 3 # Copyright (C) 2006-present 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" class="no-js"> 19 <html <? include html-attributes ?>>
20
20 <head> 21 <head>
21 <meta charset="utf-8"> 22 <? include meta/standard ?>
22 <meta name="viewport" content="width=device-width, initial-scale=1"> 23 <? include meta/social ?>
23 24 <? include styles ?>
24 <title>{{title|translate("title", "meta")}}</title> 25 <? include polyfills ?>
25 {% if description %}
26 <meta name="description" content="{{description|translate("description", "me ta")}}">
27 {% endif %}
28 <link rel="canonical" href="{{ get_canonical_url(page | ignore_browsers) }}" >
29
30 {# facebook / Open Graph http://ogp.me/ #}
31 <meta property="og:image" content="{{og_image if og_image else '/img/adblock plus_promo.png'}}" />
32 <meta property="og:title" content="{{ title | translate("title") }}">
33 {% if description %}
34 <meta property="og:description" content="{{ description | translate("descr iption") }}">
35 {% endif %}
36 <meta property="og:locale" content="{{ locale | to_og_locale }}">
37 {% for alternate_locale in available_locales %}
38 {% if alternate_locale != locale %}
39 <meta property="og:locale:alternate" content="{{ alternate_locale | to_o g_locale }}">
40 {% endif %}
41 {% endfor %}
42 <meta property="og:url" content="{{ config.get("general", "siteurl") }}{{ so urce.resolve_link(page | ignore_browsers, locale)[1] }}">
43
44 {# twitter https://dev.twitter.com/cards/markup #}
45 <meta name="twitter:site" content="@AdblockPlus" />
46 <meta name="twitter:creator" content="@AdblockPlus" />
47
48 <link rel="stylesheet" href="/css/defaults.css" class="cssfx">
49 <link rel="stylesheet" href="/css/main.css" class="cssfx">
50 <link rel="apple-touch-icon" href="/img/favicon-large.png" />
51
52 <!--[if IE 8]>
53 <script src="/js/vendor/ie8.js"></script>
54 <![endif]-->
55 26
56 {% block head %} 27 {% block head %}
57 {{head|safe}} 28 {{head|safe}}
58 {% endblock %} 29 {% endblock %}
59
60 <!--[if lt IE 9]>
61 <script src="/js/vendor/html5shiv.js"></script>
62 <script src="/js/vendor/respond.min.js"></script>
63 <script src="/js/vendor/classList.js"></script>
64 <![endif]-->
65 <!--[if lt IE 10]>
66 <script src="/js/vendor/cssfx.min.js"></script>
67 <![endif]-->
68 <!--[if IE 8]>
69 <link rel="stylesheet" href="/css/empty.css" class="cssfx"/>
70 <![endif]-->
71 </head> 30 </head>
72 31
73 <body> 32 <body>
74 {% macro pageitem(name) %} 33 <? include navbar ?>
75 {% if name == page %}
76 <li class="selected">{{get_string(name, "menu")}}</li>
77 {% else %}
78 <li>{{name|linkify}}{{get_string(name, "menu")}}</a></li>
79 {% endif %}
80 {% endmacro %}
81
82 <nav id="navbar">
83 <div class="container">
84 {{ "index" | linkify(id="navbar-logo") }}
85 <img
86 src="/img/navbar-logo.png"
87 srcset="/img/navbar-logo.svg 2x">
88 <span>{{ "Adblock <strong>Plus</strong>" | translate("navbar-logo-text ", "Navbar logo text") }}</span>
89 </a>
90 <a href="#" id="navbar-menu-toggle">
91 <img
92 src="/img/menu-toggle.png"
93 srcset="/img/menu-toggle.svg 2x">
94 </a>
95 <ul id="navbar-menu">
96 {% for pagename in ["about", "features", "bugs", "contribute"] %}
97 <li>
98 {{ pagename | linkify }}{{ get_string(pagename, "menu") }}</a>
99 </li>
100 {% endfor %}
101 <li id="navbar-locale-menubar">
102 <a href="#" id="navbar-locale-selected">
103 {{ config.get("langnames", locale) }} ({{ locale | to_og_locale | to_og_location }})
104 </a>
105 <ul id="navbar-locale-menu">
106 {% for available_locale in available_locales %}
107 <li>
108 {{ page | linkify(available_locale) }}
109 {{ config.get("langnames", available_locale) }} ({{ availabl e_locale | to_og_locale | to_og_location }})
110 </a>
111 </li>
112 {% endfor %}
113 </ul>{# #navbar-locale-menu #}
114 </li>
115 </ul>{# #navbar-menu #}
116 </div>{# .container #}
117 </nav>{# #navbar #}
118 34
119 <div id="content" class="container content {{ localefile == "index" and page }}"> 35 <div id="content" class="container content {{ localefile == "index" and page }}">
120 {% if abbnotification %} 36 {% if abbnotification %}
121 <? include abb-notification ?> 37 <? include abb-notification ?>
122 {% endif %} 38 {% endif %}
123 {% if not noheading %} 39 {% if not noheading %}
124 <h1>{{title|translate("title")}}</h1> 40 <h1>{{title|translate("title")}}</h1>
125 {% endif %} 41 {% endif %}
126 42
127 {% if not notoc %} 43 {% if not notoc %}
(...skipping 10 matching lines...) Expand all
138 54
139 {% set toclist = body|toclist %} 55 {% set toclist = body|toclist %}
140 {% if toclist %} 56 {% if toclist %}
141 <div class="toc"> 57 <div class="toc">
142 {{toc(toclist)}} 58 {{toc(toclist)}}
143 </div> 59 </div>
144 {% endif %} 60 {% endif %}
145 {% endif %} 61 {% endif %}
146 62
147 {% block body %} 63 {% block body %}
148 {{body|safe}} 64 {{body|safe}}
149 {% endblock %} 65 {% endblock %}
150 </div> 66 </div>
151 67
152 <footer id="footer" class="content"> 68 <? include footer ?>
153 <div class="container"> 69 <? include scripts ?>
154 <div class="row">
155 <nav class="column one-fourth">
156 <h5>{{ get_string("resources", "menu") }}</h5>
157 <ul>
158 {% for pagename in ["acceptable-ads", "documentation", "deployment s"] %}
159 <li>{{ pagename | linkify }}{{ get_string(pagename, "menu") }}</ a></li>
160 {% endfor %}
161 </ul>
162 </nav>
163 <nav class="column one-fourth">
164 <h5>{{ get_string("community", "menu") }}</h5>
165 <ul>
166 <li><a href="/releases/" hreflang="en">{{get_string("releases", "m enu")}}</a></li>
167 <li><a href="/blog/" hreflang="en">{{get_string("blog", "menu")}}< /a></li>
168 <li><a href="/forum/" hreflang="en">{{get_string("forum", "menu")} }</a></li>
169 {{ pageitem("development-builds") }}
170 </ul>
171 </nav>
172 <nav class="column one-fourth">
173 <h5>{{get_string("development", "menu")}}</h5>
174 <ul>
175 {{ pageitem("source") }}
176 <li><a href="https://issues.adblockplus.org/report/13" hreflang="e n">{{ get_string("roadmap", "menu") }}</a></li>
177 {{ pageitem("tools") }}
178 <li><a href="https://eyeo.com/jobs/" hreflang="en">{{ get_string(" jobs", "menu") }}</a></li>
179 </ul>
180 </nav>
181 <nav id="social-list" class="column one-fourth">
182 <h5>{{get_string("follow-us", "menu")}}</h5>
183 <ul>
184 <li>
185 <a href="https://twitter.com/AdblockPlus" target="_blank">
186 <img
187 src="/img/footer-twitter-glyphicon.png"
188 alt="{{ "Twitter" | translate("twitter-alt", "Twitter glyphi con alt text")}}">
189 </a>
190 </li>
191 <li>
192 <a href="https://www.youtube.com/user/AdblockPlusOfficial" targe t="_blank">
193 <img src="/img/footer-youtube-glyphicon.png">
194 </a>
195 </li>
196 <li>
197 <a href="https://www.facebook.com/adblockplus" target="_blank">
198 <img src="/img/footer-facebook-glyphicon.png">
199 </a>
200 </li>
201 <li>
202 <a href="https://www.instagram.com/adblockplus/" target="_blank" >
203 <img src="/img/footer-instagram-glyphicon.png">
204 </a>
205 </li>
206 </ul>
207 </nav>
208 </div> {# .row #}
209 <div id="footer-legal">
210 <p id="copyright-notice">{{ "Copyright © 2017 All rights reserved. Adb lock Plus<sup>®</sup> is a registered trademark of <a href='https://eyeo.com'>ey eo GmbH</a>." | translate("copyright-notice", "Footer copyright notice") }}</p>
211 <ul id="legal-list">
212 {% for pagename in ["terms", "privacy", "impressum"] %}
213 <li>{{ pagename | linkify }}{{ get_string(pagename, "menu") }}</a> </li>
214 {% endfor %}
215 </ul>
216 </div> {# #footer-legal #}
217 </div> {# .container #}
218 </footer> {# #footer #}
219
220 <script src="/js/main.js"></script>
221 </body> 70 </body>
222 </html> 71 </html>
OLDNEW
« includes/reinstall.tmpl ('K') | « static/js/uninstalled.js ('k') | templates/minimal.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld