Index: includes/subscriptionList.tmpl
diff --git a/includes/subscriptionList.tmpl b/includes/subscriptionList.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..39f1edad93bbc0f1448bd48515935a30570c5879
--- /dev/null
+++ b/includes/subscriptionList.tmpl
@@ -0,0 +1,89 @@
+{#
+ # This file is part of the Adblock Plus website,
+ # Copyright (C) 2006-2015 Eyeo GmbH
+ #
+ # Adblock Plus is free software: you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License version 3 as
+ # published by the Free Software Foundation.
+ #
+ # Adblock Plus is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with Adblock Plus. If not, see .
+ #}
+
+{%- macro process_subscription(subscription, parent=None) %}
+
+ {%- if subscription["supplements"] %}
+ |
+
+ {%- else %}
+ |
+ {%- endif %}
+ {{ subscription["name"] }}
+ {{ subscription["specialization"] }}
+ {%- if subscription["supplements"] %}
+ {{ "supplements_prefix"|translate }} {{ ' / '.join(subscription["supplements"]) }} {{ "supplements_suffix"|translate }}
+ {%- endif %}
+ |
+
+ {%- if subscription["maintainer"] %}
+ {{ "maintainer_prefix"|translate }} {{ subscription["maintainer"] }} {{ "maintainer_suffix"|translate }}
+ {%- endif %}
+ {%- set is_first = True %}
+ {% for key in ('homepage', 'forum', 'contact', 'faq', 'blog', 'changelog', 'policy') -%}
+ {%- set url = subscription[key] -%}
+ {%- if url -%}
+ {%- if not is_first %}, {% endif -%}
+ {%- set is_first = False -%}
+ {{ key|translate }}
+ {%- endif %}
+ {%- endfor %}
+ |
+
+
+
+ {%- if subscription["deprecated"] %}
+ {{ "deprecation_warning"|translate }}
+ {%- endif %}
+ {{ "subscribe"|translate }}{{ ' ' }}
+ {%- for title, url, complete in subscription["variants"] -%}
+ {{ title }}{%- if not loop.last %}, {% endif -%}
+ {%- endfor %}
+ |
+
+ {%- if not parent -%}
+ {%- for supplement in subscription["supplemented"]|subscription_sort -%}
+ {{ process_subscription(supplement, subscription) }}
+ {%- endfor -%}
+ {%- endif -%}
+{%- endmacro %}
+
+{% macro display_subscriptions(subscriptions) %}
+ {%- set current_type = subscriptions[0]["type"] -%}
+ {{ ("type_" + current_type)|translate }}
+
+
+ {%- for subscription in subscriptions|subscription_sort -%}
+ {%- if not subscription["supplements"] -%}
+ {%- if current_type != subscription["type"] -%}
+ {%- set current_type = subscription["type"] %}
+
+
+ {{ ("type_" + current_type)|translate }}
+
+
+ {%- endif -%}
+ {{ process_subscription(subscription) }}
+ {%- endif -%}
+ {%- endfor %}
+
+{% endmacro %}