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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « templates/interface.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/preftable.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/templates/preftable.tmpl
@@ -0,0 +1,43 @@
+{% extends "templates/default" %}
+
+{% block body %}
+ {{body|safe}}
+
+ <table id="preftable">
+ <tbody>
+ <tr>
+ <th width="30%">{{"prefnamecol"|translate}}</th>
+ <th width="20%">{{"defaultcol"|translate}}</th>
+ <th width="50%">{{"descriptioncol"|translate}}</th>
+ </tr>
+ {% for i in range(0, 100) %}
+ {% if ("section%did" % i) in localedata %}
+ <tr id="{{ ("section%did" % i) |translate }}">
+ <td class="section" colspan="3">{{ ("section%dtitle" % i) |translate }}</td>
+ </tr>
+ {% for j in range(0, 100) %}
+ {% if ("section%dpreference%dname" % (i, j)) in localedata %}
+ <tr id="{{ ("section%dpreference%dname" % (i, j)) |translate }}">
+ <td>
+ <span>extensions.</span>
+ <span>adblockplus.</span>
+ <span class="prefname">{{ ("section%dpreference%dname" % (i, j)) |translate }}</span>
+ </td>
+ {% if ("section%dpreference%ddefault" % (i, j)) in localedata %}
+ <td>{{ ("section%dpreference%ddefault" % (i, j)) |translate }}</td>
+ {% else %}
+ {% if ("section%dpreference%dempty" % (i, j)) |translate != "false" %}
+ <td>{{ ("section%dpreference%dempty" % (i, j)) |translate }}</td>
+ {% else %}
+ <td>&nbsp</td>
+ {% endif %}
+ {% endif %}
+ <td>{{ ("section%dpreference%ddescription" % (i, j)) |translate|unescape|safe }}</td>
+ </tr>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+ {% endfor %}
+ </tbody>
+ </table>
+{% endblock %}
« 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