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

Side by Side Diff: templates/preftable.tmpl

Issue 6021528219025408: Issue #1170 More progress migrating adblockplus.org to our CMS. (Closed)
Patch Set: Created Sept. 1, 2014, 10:45 a.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 | « templates/interface.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {% extends "templates/default" %}
2
3 {% block body %}
4 {{body|safe}}
5
6 <table id="preftable">
7 <tbody>
8 <tr>
9 <th width="30%">{{"prefnamecol"|translate}}</th>
10 <th width="20%">{{"defaultcol"|translate}}</th>
11 <th width="50%">{{"descriptioncol"|translate}}</th>
12 </tr>
13 {% for i in range(0, 100) %}
14 {% if ("section%did" % i) in localedata %}
15 <tr id="{{ ("section%did" % i) |translate }}">
16 <td class="section" colspan="3">{{ ("section%dtitle" % i) |translate }}</td>
17 </tr>
18 {% for j in range(0, 100) %}
19 {% if ("section%dpreference%dname" % (i, j)) in localedata %}
20 <tr id="{{ ("section%dpreference%dname" % (i, j)) |translate }}">
21 <td>
22 <span>extensions.</span>
23 <span>adblockplus.</span>
24 <span class="prefname">{{ ("section%dpreference%dname" % (i, j )) |translate }}</span>
25 </td>
26 {% if ("section%dpreference%ddefault" % (i, j)) in localedata %}
27 <td>{{ ("section%dpreference%ddefault" % (i, j)) |translate }} </td>
28 {% else %}
29 {% if ("section%dpreference%dempty" % (i, j)) |translate != "f alse" %}
30 <td>{{ ("section%dpreference%dempty" % (i, j)) |translate }} </td>
31 {% else %}
32 <td>&nbsp</td>
33 {% endif %}
34 {% endif %}
35 <td>{{ ("section%dpreference%ddescription" % (i, j)) |translate| unescape|safe }}</td>
36 </tr>
37 {% endif %}
38 {% endfor %}
39 {% endif %}
40 {% endfor %}
41 </tbody>
42 </table>
43 {% endblock %}
OLDNEW
« no previous file with comments | « templates/interface.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld