| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 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 {% from "includes/common" import description with context %} | |
| 18 | |
| 19 {% macro display_preftable(preftable, links) %} | |
| 20 <table id="preftable"> | |
| 21 <tbody> | |
| 22 <tr> | |
| 23 <th width="30%">{{"prefnamecol"|translate}}</th> | |
| 24 <th width="20%">{{"defaultcol"|translate}}</th> | |
| 25 <th width="50%">{{"descriptioncol"|translate}}</th> | |
| 26 </tr> | |
| 27 {% for section in preftable %} | |
| 28 <tr id="{{ section.id }}"> | |
| 29 <td class="section" colspan="3">{{ (section.id + "Title")|translate }} </td> | |
| 30 </tr> | |
| 31 {% for preference in section.preferences %} | |
| 32 <tr id="{{ preference.name }}"> | |
| 33 <td> | |
| 34 <span>extensions.</span> | |
| 35 <span>adblockplus.</span> | |
| 36 <span class="prefname">{{ preference.name }}</span> | |
| 37 </td> | |
| 38 {% if preference.default %} | |
| 39 <td>{{ preference.default }}</td> | |
| 40 {% elif preference.empty != "false" %} | |
| 41 <td>empty</td> | |
|
Wladimir Palant
2015/02/26 20:35:03
Nit: Currently it's <td><em>empty</em></td>
kzar
2015/02/26 21:49:13
Done.
| |
| 42 {% else %} | |
| 43 <td> </td> | |
| 44 {% endif %} | |
| 45 <td>{{ description(preference.description, links, "", "<br>") }}</td > | |
|
Wladimir Palant
2015/02/26 20:35:03
Didn't realize that the string ID is part of the d
kzar
2015/02/26 21:49:13
Done.
| |
| 46 </tr> | |
| 47 {% endfor %} | |
| 48 {% endfor %} | |
| 49 </tbody> | |
| 50 </table> | |
| 51 {% endmacro %} | |
| OLD | NEW |