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

Side by Side Diff: templates/default.tmpl

Issue 29690912: Fixes #9 - Update cross-promotional section (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Change background image to solid colour Created Feb. 28, 2018, 8:40 a.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
(...skipping 15 matching lines...) Expand all
26 26
27 {% block head %} 27 {% block head %}
28 {{head|safe}} 28 {{head|safe}}
29 {% endblock %} 29 {% endblock %}
30 </head> 30 </head>
31 31
32 <body> 32 <body>
33 <? include navbar ?> 33 <? include navbar ?>
34 34
35 <div id="content" class="container content {{ localefile == "index" and page }}"> 35 <div id="content" class="container content {{ localefile == "index" and page }}">
36 {% if abbnotification %}
37 <? include abb-notification ?>
38 {% endif %}
39 {% if not noheading %} 36 {% if not noheading %}
40 <h1>{{title|translate("title")}}</h1> 37 <h1>{{title|translate("title")}}</h1>
41 {% endif %} 38 {% endif %}
42 39
43 {% if not notoc %} 40 {% if not notoc %}
44 {% macro toc(toclist) %} 41 {% macro toc(toclist) %}
45 <ul> 42 <ul>
46 {% for item in toclist %} 43 {% for item in toclist %}
47 <li> 44 <li>
48 <a href="#{{item.anchor}}">{{item.title}}</a> 45 <a href="#{{item.anchor}}">{{item.title}}</a>
49 {% if item.subitems %}{{toc(item.subitems)}}{% endif %} 46 {% if item.subitems %}{{toc(item.subitems)}}{% endif %}
50 </li> 47 </li>
51 {% endfor %} 48 {% endfor %}
52 </ul> 49 </ul>
53 {% endmacro %} 50 {% endmacro %}
54 51
55 {% set toclist = body|toclist %} 52 {% set toclist = body|toclist %}
56 {% if toclist %} 53 {% if toclist %}
57 <div class="toc"> 54 <div class="toc">
58 {{toc(toclist)}} 55 {{toc(toclist)}}
59 </div> 56 </div>
60 {% endif %} 57 {% endif %}
61 {% endif %} 58 {% endif %}
62 59
63 {% block body %} 60 {% block body %}
64 {{body|safe}} 61 {{body|safe}}
65 {% endblock %} 62 {% endblock %}
66 </div> 63 </div>
67 64
65 {% if localefile == "index" %}
66 <? include abb-notification ?>
67 {% endif %}
68
68 <? include footer ?> 69 <? include footer ?>
69 <? include scripts ?> 70 <? include scripts ?>
70 </body> 71 </body>
71 </html> 72 </html>
OLDNEW
« locales/en/abb-notification.json ('K') | « static/img/google-play-badge.svg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld