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

Side by Side Diff: includes/preftable.tmpl

Issue 5636796054503424: Issue 1170 - [adblockplus.org Anwiki to CMS migration] Migrate content (Closed)
Patch Set: Brought in changes to website made over last few months. Created Jan. 19, 2015, 12:18 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
OLDNEW
(Empty)
1 {% block body %}
2 <table id="preftable">
3 <tbody>
4 <tr>
5 <th width="30%">{{"prefnamecol"|translate}}</th>
6 <th width="20%">{{"defaultcol"|translate}}</th>
7 <th width="50%">{{"descriptioncol"|translate}}</th>
8 </tr>
9 {% for section in preftable %}
10 <tr id="{{ section.id }}">
11 <td class="section" colspan="3">{{ section.title |translate }}</td>
12 </tr>
13 {% for preference in section.preferences %}
14 <tr id="{{ preference.name }}">
15 <td>
16 <span>extensions.</span>
17 <span>adblockplus.</span>
18 <span class="prefname">{{ preference.name }}</span>
19 </td>
20 {% if preference.default %}
21 <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.
22 {% else %}
23 {% if preference.empty != "false" %}
24 <td>{{ preference.empty }}</td>
25 {% else %}
26 <td>&nbsp</td>
27 {% endif %}
28 {% endif %}
29 <td>{{ preference.description |translate(None, links[preference.desc ription])|unescape|safe }}</td>
30 </tr>
31 {% endfor %}
32 {% endfor %}
33 </tbody>
34 </table>
35 {% endblock %}
OLDNEW

Powered by Google App Engine
This is Rietveld