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

Side by Side Diff: sitescripts/subscriptions/template/recommendations.xml

Issue 29334078: Issue 3117 - Restricted "prefixes" attribute in recommendations.xml to language subscriptions (Closed)
Patch Set: Created Jan. 20, 2016, 12:22 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
« no previous file with comments | « no previous file | 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
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 2
3 <!-- 3 <!--
4 - This file is part of the Adblock Plus web scripts, 4 - This file is part of the Adblock Plus web scripts,
5 - Copyright (C) 2006-2015 Eyeo GmbH 5 - Copyright (C) 2006-2015 Eyeo GmbH
6 - 6 -
7 - Adblock Plus is free software: you can redistribute it and/or modify 7 - Adblock Plus is free software: you can redistribute it and/or modify
8 - it under the terms of the GNU General Public License version 3 as 8 - it under the terms of the GNU General Public License version 3 as
9 - published by the Free Software Foundation. 9 - published by the Free Software Foundation.
10 - 10 -
11 - Adblock Plus is distributed in the hope that it will be useful, 11 - Adblock Plus is distributed in the hope that it will be useful,
12 - but WITHOUT ANY WARRANTY; without even the implied warranty of 12 - but WITHOUT ANY WARRANTY; without even the implied warranty of
13 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 - GNU General Public License for more details. 14 - GNU General Public License for more details.
15 - 15 -
16 - You should have received a copy of the GNU General Public License 16 - You should have received a copy of the GNU General Public License
17 - along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 17 - along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
18 --> 18 -->
19 19
20 <subscriptions> 20 <subscriptions>
21 {% for subscription in subscriptions|subscriptionSort -%} 21 {% for subscription in subscriptions|subscriptionSort -%}
22 {% if subscription.recommendation -%} 22 {% if subscription.recommendation -%}
23 {% set title, url, complete = subscription.recommendation -%} 23 {% set title, url, complete = subscription.recommendation -%}
24 {% set homepage = subscription.homepage or subscription.forum or subscription. blog or subscription.faq or subscription.contact -%} 24 {% set homepage = subscription.homepage or subscription.forum or subscription. blog or subscription.faq or subscription.contact -%}
25 <subscription title="{{title}}" 25 <subscription title="{{title}}"
26 specialization="{{subscription.specialization}}" 26 specialization="{{subscription.specialization}}"
27 url="{{url}}" 27 url="{{url}}"
28 homepage="{{homepage}}" 28 homepage="{{homepage}}"
29 {%- if subscription.languages %}
29 prefixes="{{subscription.languages}}" 30 prefixes="{{subscription.languages}}"
31 {%- endif %}
30 author="{{subscription.maintainer}}" 32 author="{{subscription.maintainer}}"
31 type="{{subscription.type}}"/> 33 type="{{subscription.type}}"/>
32 {% endif -%} 34 {% endif -%}
33 {% endfor -%} 35 {% endfor -%}
34 </subscriptions> 36 </subscriptions>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld