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

Side by Side Diff: templates/default.tmpl

Issue 5636796054503424: Issue 1170 - [adblockplus.org Anwiki to CMS migration] Migrate content (Closed)
Patch Set: Addressed more comments. Created Feb. 26, 2015, 9:47 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 {#
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
1 <!DOCTYPE html> 18 <!DOCTYPE html>
2 <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">
3 <head> 20 <head>
4 <title>{{title|translate}}</title> 21 <title>{{title|translate}}</title>
5 22
6 <meta name="viewport" content="width=device-width, initial-scale=1"> 23 <meta name="viewport" content="width=device-width, initial-scale=1">
7 <link rel="stylesheet" href="/css/main.css" class="cssfx"> 24 <link rel="stylesheet" href="/css/main.css" class="cssfx">
8 <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">
9 <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)">
10 <noscript> 27 <noscript>
(...skipping 10 matching lines...) Expand all
21 <!--[if lt IE 9]> 38 <!--[if lt IE 9]>
22 <script src="/js/vendor/html5shiv.js"></script> 39 <script src="/js/vendor/html5shiv.js"></script>
23 <script src="/js/vendor/respond.min.js"></script> 40 <script src="/js/vendor/respond.min.js"></script>
24 <![endif]--> 41 <![endif]-->
25 <!--[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]-- >
26 <!-- Fixes cssfx issues in IE8. --> 43 <!-- Fixes cssfx issues in IE8. -->
27 <!--[if IE 8]> 44 <!--[if IE 8]>
28 <link rel="stylesheet" href="/css/empty.css" class="cssfx"/> 45 <link rel="stylesheet" href="/css/empty.css" class="cssfx"/>
29 <![endif]--> 46 <![endif]-->
30 47
48 {% block head %}
31 {{head|safe}} 49 {{head|safe}}
50 {% endblock %}
32 </head> 51 </head>
33 52
34 <body> 53 <body>
35 {% macro pageitem(name) %} 54 {% macro pageitem(name) %}
36 {% if name == page %} 55 {% if name == page %}
37 <li class="selected">{{"title"|translate(name)}}</li> 56 <li class="selected">{{name|translate("menu")}}</li>
38 {% else %} 57 {% else %}
39 <li>{{name|linkify}}{{"title"|translate(name)}}</a></li> 58 <li>{{name|linkify}}{{name|translate("menu")}}</a></li>
40 {% endif %} 59 {% endif %}
41 {% endmacro %} 60 {% endmacro %}
42 61
43 <header> 62 <header>
44 <a id="logo" class="sprite" itemprop="image" href="/"></a> 63 <a id="logo" class="sprite" itemprop="image" href="/"></a>
45 <nav> 64 <nav>
46 <ul> 65 <ul>
47 {% if localefile == "index" %} 66 {% if localefile == "index" %}
48 <li class="selected first">{{"installation"|translate("menu")}}</li> 67 <li class="selected first">{{"installation"|translate("menu")}}</li>
49 {% else %} 68 {% else %}
(...skipping 25 matching lines...) Expand all
75 <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)}}
76 </a> 95 </a>
77 </li> 96 </li>
78 {% endfor %} 97 {% endfor %}
79 </ul> 98 </ul>
80 </li> 99 </li>
81 </ul> 100 </ul>
82 </nav> 101 </nav>
83 </header> 102 </header>
84 103
85 <div id="content"> 104 <div id="content" {% if localefile == "index" %}class="{{page}}"{% endif %}>
86 {% if not noheading %} 105 {% if not noheading %}
87 <h1>{{title|translate}}</h1> 106 <h1>{{title|translate}}</h1>
88 {% endif %} 107 {% endif %}
89 108
90 {% if not notoc %} 109 {% if not notoc %}
91 {% macro toc(toclist) %} 110 {% macro toc(toclist) %}
92 <ul> 111 <ul>
93 {% for item in toclist %} 112 {% for item in toclist %}
94 <li> 113 <li>
95 <a href="#{{item.anchor}}">{{item.title}}</a> 114 <a href="#{{item.anchor}}">{{item.title}}</a>
96 {% if item.subitems %}{{toc(item.subitems)}}{% endif %} 115 {% if item.subitems %}{{toc(item.subitems)}}{% endif %}
97 </li> 116 </li>
98 {% endfor %} 117 {% endfor %}
99 </ul> 118 </ul>
100 {% endmacro %} 119 {% endmacro %}
101 120
102 {% set toclist = body|toclist %} 121 {% set toclist = body|toclist %}
103 {% if toclist %} 122 {% if toclist %}
104 <div class="toc"> 123 <div class="toc">
105 {{toc(toclist)}} 124 {{toc(toclist)}}
106 </div> 125 </div>
107 {% endif %} 126 {% endif %}
108 {% endif %} 127 {% endif %}
109 128
129 {% block body %}
110 {{body|safe}} 130 {{body|safe}}
131 {% endblock %}
111 </div> 132 </div>
112 133
113 <footer> 134 <footer>
114 <div id="footer-content"> 135 <div id="footer-content">
115 <nav> 136 <nav>
116 <section class="first"> 137 <section class="first">
117 <h1>{{"resources"|translate("menu")}}</h1> 138 <h1>{{"resources"|translate("menu")}}</h1>
118 <ul> 139 <ul>
119 {% for name in ["screenshots", "documentation", "privacy", "impres sum"] %} 140 {% for name in ["acceptable-ads", "documentation", "deployments", "privacy", "impressum"] %}
120 {{pageitem(name)}} 141 {{pageitem(name)}}
121 {% endfor %} 142 {% endfor %}
122 </ul> 143 </ul>
123 </section> 144 </section>
124 145
125 <section> 146 <section>
126 <h1>{{"community"|translate("menu")}}</h1> 147 <h1>{{"community"|translate("menu")}}</h1>
127 <ul> 148 <ul>
128 <li><a href="/releases/" hreflang="en">{{"releases"|translate("men u")}}</a></li> 149 <li><a href="/releases/" hreflang="en">{{"releases"|translate("men u")}}</a></li>
129 <li><a href="/blog/" hreflang="en">{{"blog"|translate("menu")}}</a ></li> 150 <li><a href="/blog/" hreflang="en">{{"blog"|translate("menu")}}</a ></li>
130 <li><a href="/forum/" hreflang="en">{{"forum"|translate("menu")}}< /a></li> 151 <li><a href="/forum/" hreflang="en">{{"forum"|translate("menu")}}< /a></li>
131 {{pageitem("development-builds")}} 152 {{pageitem("development-builds")}}
132 </ul> 153 </ul>
133 </section> 154 </section>
134 155
135 <section> 156 <section>
136 <h1>{{"development"|translate("menu")}}</h1> 157 <h1>{{"development"|translate("menu")}}</h1>
137 <ul> 158 <ul>
138 {{pageitem("source")}} 159 {{pageitem("source")}}
139 <li><a href="/forum/viewforum.php?f=11" hreflang="en">{{"bugs"|tra nslate("menu")}}</a></li>
140 <li><a href="/category/roadmap/" hreflang="en">{{"roadmap"|transla te("menu")}}</a></li> 160 <li><a href="/category/roadmap/" hreflang="en">{{"roadmap"|transla te("menu")}}</a></li>
141 {{pageitem("tools")}} 161 {{pageitem("tools")}}
142 </ul> 162 </ul>
143 </section> 163 </section>
144 </nav> 164 </nav>
145 165
146 <section id="social"> 166 <section id="social">
147 <h1>{{"follow-us"|translate("menu")}}</h1> 167 <h1>{{"follow-us"|translate("menu")}}</h1>
148 <ul id="social-list"> 168 <ul id="social-list">
149 <li class="social-entry"> 169 <li class="social-entry">
150 <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>
151 </li> 171 </li>
152 <li class="social-entry"> 172 <li class="social-entry">
153 <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>
154 </li> 174 </li>
155 <li class="social-entry"> 175 <li class="social-entry">
156 <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>
157 </li> 177 </li>
158 </ul> 178 </ul>
159 </section> 179 </section>
160 </div> 180 </div>
161 </footer> 181 </footer>
162 182
163 <script src="/js/main.js"></script> 183 <script src="/js/main.js"></script>
164 </body> 184 </body>
165 </html> 185 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld