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

Side by Side Diff: includes/common.tmpl

Issue 5636796054503424: Issue 1170 - [adblockplus.org Anwiki to CMS migration] Migrate content (Closed)
Patch Set: Addressed more comments. Created Feb. 26, 2015, 9:47 p.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 {#
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 description(key_name, links, open="", close="") %}
19 {% for i in range(100) %}
20 {% if i == 0 %}
21 {% set current_key_name = key_name %}
22 {% else %}
23 {% set current_key_name = "%s%d" % (key_name, i) %}
24 {% endif %}
25 {% if current_key_name in localedata %}
26 {{open|safe}}{{ current_key_name|translate(links=links[key_name]) }}{{clos e|safe}}
27 {% endif %}
28 {% endfor %}
29 {% endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld