| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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 {% set index_page = (pagedata == "<? include index ?>\n") %} | |
|
Wladimir Palant
2015/02/26 20:35:03
Please use (localefile == "index") here, as it was
kzar
2015/02/26 21:49:13
Done.
| |
| 19 <!DOCTYPE html> | 18 <!DOCTYPE html> |
| 20 <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"> |
| 21 <head> | 20 <head> |
| 22 <title>{{title|translate}}</title> | 21 <title>{{title|translate}}</title> |
| 23 | 22 |
| 24 <meta name="viewport" content="width=device-width, initial-scale=1"> | 23 <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 25 <link rel="stylesheet" href="/css/main.css" class="cssfx"> | 24 <link rel="stylesheet" href="/css/main.css" class="cssfx"> |
| 26 <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"> |
| 27 <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)"> |
| 28 <noscript> | 27 <noscript> |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 57 <li class="selected">{{name|translate("menu")}}</li> | 56 <li class="selected">{{name|translate("menu")}}</li> |
| 58 {% else %} | 57 {% else %} |
| 59 <li>{{name|linkify}}{{name|translate("menu")}}</a></li> | 58 <li>{{name|linkify}}{{name|translate("menu")}}</a></li> |
| 60 {% endif %} | 59 {% endif %} |
| 61 {% endmacro %} | 60 {% endmacro %} |
| 62 | 61 |
| 63 <header> | 62 <header> |
| 64 <a id="logo" class="sprite" itemprop="image" href="/"></a> | 63 <a id="logo" class="sprite" itemprop="image" href="/"></a> |
| 65 <nav> | 64 <nav> |
| 66 <ul> | 65 <ul> |
| 67 {% if index_page %} | 66 {% if localefile == "index" %} |
| 68 <li class="selected first">{{"installation"|translate("menu")}}</li> | 67 <li class="selected first">{{"installation"|translate("menu")}}</li> |
| 69 {% else %} | 68 {% else %} |
| 70 <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> |
| 71 {% endif %} | 70 {% endif %} |
| 72 {% for name in ["about", "features", "bugs", "contribute"] %} | 71 {% for name in ["about", "features", "bugs", "contribute"] %} |
| 73 {{pageitem(name)}} | 72 {{pageitem(name)}} |
| 74 {% endfor %} | 73 {% endfor %} |
| 75 <li id="search"> | 74 <li id="search"> |
| 76 <form action="https://www.google.com/cse" id="search-box"> | 75 <form action="https://www.google.com/cse" id="search-box"> |
| 77 <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 Loading... | |
| 95 <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)}} |
| 96 </a> | 95 </a> |
| 97 </li> | 96 </li> |
| 98 {% endfor %} | 97 {% endfor %} |
| 99 </ul> | 98 </ul> |
| 100 </li> | 99 </li> |
| 101 </ul> | 100 </ul> |
| 102 </nav> | 101 </nav> |
| 103 </header> | 102 </header> |
| 104 | 103 |
| 105 <div id="content" {% if index_page %}class="{{page}}"{% endif %}> | 104 <div id="content" {% if localefile == "index" %}class="{{page}}"{% endif %}> |
| 106 {% if not noheading %} | 105 {% if not noheading %} |
| 107 <h1>{{title|translate}}</h1> | 106 <h1>{{title|translate}}</h1> |
| 108 {% endif %} | 107 {% endif %} |
| 109 | 108 |
| 110 {% if not notoc %} | 109 {% if not notoc %} |
| 111 {% macro toc(toclist) %} | 110 {% macro toc(toclist) %} |
| 112 <ul> | 111 <ul> |
| 113 {% for item in toclist %} | 112 {% for item in toclist %} |
| 114 <li> | 113 <li> |
| 115 <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 Loading... | |
| 177 <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> |
| 178 </li> | 177 </li> |
| 179 </ul> | 178 </ul> |
| 180 </section> | 179 </section> |
| 181 </div> | 180 </div> |
| 182 </footer> | 181 </footer> |
| 183 | 182 |
| 184 <script src="/js/main.js"></script> | 183 <script src="/js/main.js"></script> |
| 185 </body> | 184 </body> |
| 186 </html> | 185 </html> |
| LEFT | RIGHT |