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

Side by Side Diff: includes/preftable.tmpl

Issue 6250108710551552: Issue 2136 - Update web.adblockplus.org content for specifying default translations inline (Closed)
Patch Set: Created March 12, 2015, 9:29 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
« no previous file with comments | « includes/interface.tmpl ('k') | includes/subscriptionList.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-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 {% macro display_preftable(preftable, links) %} 18 {% macro display_preftable(preftable, links) %}
19 <table id="preftable"> 19 <table id="preftable">
20 <tbody> 20 <tbody>
21 <tr> 21 <tr>
22 <th width="30%">{{ "prefnamecol"|translate }}</th> 22 <th width="30%">{{ "Preference"|translate("prefnamecol") }}</th>
23 <th width="20%">{{ "defaultcol"|translate }}</th> 23 <th width="20%">{{ "Default value"|translate("defaultcol") }}</th>
24 <th width="50%">{{ "descriptioncol"|translate }}</th> 24 <th width="50%">{{ "Comments"|translate("descriptioncol") }}</th>
25 </tr> 25 </tr>
26 {% for section in preftable %} 26 {% for section in preftable %}
27 <tr id="{{ section.id }}"> 27 <tr id="{{ section.id }}">
28 <td class="section" colspan="3">{{ section.title }}</td> 28 <td class="section" colspan="3">{{ section.title }}</td>
29 </tr> 29 </tr>
30 {% for preference in section.preferences %} 30 {% for preference in section.preferences %}
31 <tr id="{{ preference.name }}"> 31 <tr id="{{ preference.name }}">
32 <td> 32 <td>
33 <span>extensions.</span> 33 <span>extensions.</span>
34 <span>adblockplus.</span> 34 <span>adblockplus.</span>
35 <span class="prefname">{{ preference.name }}</span> 35 <span class="prefname">{{ preference.name }}</span>
36 </td> 36 </td>
37 {% if preference.default %} 37 {% if preference.default %}
38 <td>{{ preference.default }}</td> 38 <td>{{ preference.default }}</td>
39 {% elif preference.default is none or 39 {% elif preference.default is none or
40 preference.default is undefined %} 40 preference.default is undefined %}
41 <td><em>empty</em></td> 41 <td><em>empty</em></td>
42 {% else %} 42 {% else %}
43 <td>&nbsp</td> 43 <td>&nbsp</td>
44 {% endif %} 44 {% endif %}
45 <td>{{ preference.description() }}</td> 45 <td>{{ preference.description() }}</td>
46 </tr> 46 </tr>
47 {% endfor %} 47 {% endfor %}
48 {% endfor %} 48 {% endfor %}
49 </tbody> 49 </tbody>
50 </table> 50 </table>
51 {% endmacro %} 51 {% endmacro %}
OLDNEW
« no previous file with comments | « includes/interface.tmpl ('k') | includes/subscriptionList.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld