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

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

Issue 29325371: Issue 2822 - Added support for new subscription types (Closed)
Patch Set: Created Aug. 28, 2015, 5:29 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
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 prefixes="{{subscription.languages}}" 29 prefixes="{{subscription.languages}}"
30 author="{{subscription.maintainer}}"/> 30 author="{{subscription.maintainer}}"
31 type="{{subscription.type}}"/>
31 {% endif -%} 32 {% endif -%}
32 {% endfor -%} 33 {% endfor -%}
33 </subscriptions> 34 </subscriptions>
OLDNEW

Powered by Google App Engine
This is Rietveld