| 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> </td> |
| + {% endif %} |
| + {% endif %} |
| + <td>{{ ("section%dpreference%ddescription" % (i, j)) |translate|unescape|safe }}</td> |
| + </tr> |
| + {% endif %} |
| + {% endfor %} |
| + {% endif %} |
| + {% endfor %} |
| + </tbody> |
| + </table> |
| +{% endblock %} |