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

Delta Between Two Patch Sets: includes/preftable.tmpl

Issue 5636796054503424: Issue 1170 - [adblockplus.org Anwiki to CMS migration] Migrate content (Closed)
Left Patch Set: Brought in changes to website made over last few months. Created Jan. 19, 2015, 12:18 a.m.
Right Patch Set: Remove includes/common.tmpl which is no longer required. Created March 7, 2015, 7:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « includes/interface.tmpl ('k') | includes/subscriptionList.tmpl » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 {% block body %} 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
18 {% macro display_preftable(preftable, links) %}
2 <table id="preftable"> 19 <table id="preftable">
3 <tbody> 20 <tbody>
4 <tr> 21 <tr>
5 <th width="30%">{{"prefnamecol"|translate}}</th> 22 <th width="30%">{{ "prefnamecol"|translate }}</th>
6 <th width="20%">{{"defaultcol"|translate}}</th> 23 <th width="20%">{{ "defaultcol"|translate }}</th>
7 <th width="50%">{{"descriptioncol"|translate}}</th> 24 <th width="50%">{{ "descriptioncol"|translate }}</th>
8 </tr> 25 </tr>
9 {% for section in preftable %} 26 {% for section in preftable %}
10 <tr id="{{ section.id }}"> 27 <tr id="{{ section.id }}">
11 <td class="section" colspan="3">{{ section.title |translate }}</td> 28 <td class="section" colspan="3">{{ section.title }}</td>
12 </tr> 29 </tr>
13 {% for preference in section.preferences %} 30 {% for preference in section.preferences %}
14 <tr id="{{ preference.name }}"> 31 <tr id="{{ preference.name }}">
15 <td> 32 <td>
16 <span>extensions.</span> 33 <span>extensions.</span>
17 <span>adblockplus.</span> 34 <span>adblockplus.</span>
18 <span class="prefname">{{ preference.name }}</span> 35 <span class="prefname">{{ preference.name }}</span>
19 </td> 36 </td>
20 {% if preference.default %} 37 {% if preference.default %}
21 <td>{{ preference.default }}</td> 38 <td>{{ preference.default }}</td>
Sebastian Noack 2015/02/13 17:51:49 I suppose you should add "colspan=2" here, if you
kzar 2015/02/20 14:55:18 I only generate one cell otherwise I think.
Sebastian Noack 2015/02/20 15:32:59 Oops, you are right.
39 {% elif preference.default is none or
40 preference.default is undefined %}
41 <td><em>empty</em></td>
22 {% else %} 42 {% else %}
23 {% if preference.empty != "false" %} 43 <td>&nbsp</td>
24 <td>{{ preference.empty }}</td>
25 {% else %}
26 <td>&nbsp</td>
27 {% endif %}
28 {% endif %} 44 {% endif %}
29 <td>{{ preference.description |translate(None, links[preference.desc ription])|unescape|safe }}</td> 45 <td>{{ preference.description() }}</td>
30 </tr> 46 </tr>
31 {% endfor %} 47 {% endfor %}
32 {% endfor %} 48 {% endfor %}
33 </tbody> 49 </tbody>
34 </table> 50 </table>
35 {% endblock %} 51 {% endmacro %}
LEFTRIGHT

Powered by Google App Engine
This is Rietveld