diff --git a/foundation/www/conf/2019/expo.html b/foundation/www/conf/2019/expo.html index 367f4082..ef147cff 100644 --- a/foundation/www/conf/2019/expo.html +++ b/foundation/www/conf/2019/expo.html @@ -1,38 +1,6 @@ {% extends "templates/base.html" %} {% block title %}ERPNext Expo{% endblock %} - -{% set platinum_sponsors = [ - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #1', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #2', - 'website_url': 'http://www.example.com/' - } -] %} - -{% set silver_sponsors = [ - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #3', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #4', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #5', - 'website_url': 'http://www.example.com/' - }, -] %} - {% block content %}
@@ -93,12 +61,12 @@

Connect with the core team, maintainers, developers, implementors. If you are connected to ERPNext, this is an event you cannot miss.

- -
- -{% macro show_section(sponsors, with_img = False, color=False) %} -
- {% for sponsor in sponsors %} -
- - {% if with_img %} -
- {{ sponsor.title }} -
- {% endif %} -
-
- {{ sponsor.title }} -
-
-
-
- {% if loop.index is divisibleby 4 %} -
- {% endif %} - {% endfor %} -
-{% endmacro %} - -
-
-
-

Become a Sponsor

-

Become a patron for the conference and get associated with a global community of tens of thousands of users and developers.

- Sponsor -
-
- {% if platinum_sponsors %} -

Platinum Sponsors

- {{ show_section(platinum_sponsors, color=True, with_img=True) }} - {% endif %} - - {% if gold_sponsors %} -

Gold Sponsors

- {{ show_section(gold_sponsors, with_img=True) }} - {% endif %} - - {% if silver_sponsors %} -

Silver Sponsors

- {{ show_section(silver_sponsors, with_img=True) }} - {% endif %} -

-
-
+{% from "www/conf/2019/sponsor.html" import sponsor %} +{{ sponsor() }}
diff --git a/foundation/www/conf/2019/index.html b/foundation/www/conf/2019/index.html index 26419342..b64a064c 100644 --- a/foundation/www/conf/2019/index.html +++ b/foundation/www/conf/2019/index.html @@ -1,37 +1,6 @@ {% extends "templates/base.html" %} {% block title %}ERPNext Conference 2019{% endblock %} -{% set platinum_sponsors = [ - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #1', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #2', - 'website_url': 'http://www.example.com/' - } -] %} - -{% set silver_sponsors = [ - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #3', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #4', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #5', - 'website_url': 'http://www.example.com/' - }, -] %} - {% block content %}
@@ -67,27 +36,13 @@

Events

Connect with the core team, maintainers, developers, implementors. If you are connected to ERPNext, this is an event you cannot miss.

-
- -{% macro show_section(sponsors, with_img = False, color=False) %} -
- {% for sponsor in sponsors %} - - {% if loop.index is divisibleby 4 %} -
- {% endif %} - {% endfor %} -
-{% endmacro %} - -
-
-
-

Become a Sponsor

-

Become a patron for the conference and get associated with a global community of tens of thousands of users and developers.

- Sponsor -
-
- {% if platinum_sponsors %} -

Platinum Sponsors

- {{ show_section(platinum_sponsors, color=True, with_img=True) }} - {% endif %} - - {% if gold_sponsors %} -

Gold Sponsors

- {{ show_section(gold_sponsors, with_img=True) }} - {% endif %} - - {% if silver_sponsors %} -

Silver Sponsors

- {{ show_section(silver_sponsors, with_img=True) }} - {% endif %} -

-
-
+{% from "www/conf/2019/sponsor.html" import sponsor %} +{{ sponsor() }}
diff --git a/foundation/www/conf/2019/sprint.html b/foundation/www/conf/2019/sprint.html index a9fa03f8..dd3b655c 100644 --- a/foundation/www/conf/2019/sprint.html +++ b/foundation/www/conf/2019/sprint.html @@ -1,38 +1,6 @@ {% extends "templates/base.html" %} {% block title %}Contribution Sprint{% endblock %} - -{% set platinum_sponsors = [ - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #1', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #2', - 'website_url': 'http://www.example.com/' - } -] %} - -{% set silver_sponsors = [ - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #3', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #4', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #5', - 'website_url': 'http://www.example.com/' - }, -] %} - {% block content %}
@@ -95,12 +63,12 @@

Connect with the core team, maintainers, developers, implementors. If you are connected to ERPNext, this is an event you cannot miss.

- -{% macro show_section(sponsors, with_img = False, color=False) %} -
- {% for sponsor in sponsors %} - - {% if loop.index is divisibleby 4 %} -
- {% endif %} - {% endfor %} -
-{% endmacro %} - -
-
-
-

Become a Sponsor

-

Become a patron for the conference and get associated with a global community of tens of thousands of users and developers.

- Sponsor -
-
- {% if platinum_sponsors %} -

Platinum Sponsors

- {{ show_section(platinum_sponsors, color=True, with_img=True) }} - {% endif %} - - {% if gold_sponsors %} -

Gold Sponsors

- {{ show_section(gold_sponsors, with_img=True) }} - {% endif %} - - {% if silver_sponsors %} -

Silver Sponsors

- {{ show_section(silver_sponsors, with_img=True) }} - {% endif %} -

-
-
+{% from "www/conf/2019/sponsor.html" import sponsor %} +{{ sponsor() }}
diff --git a/foundation/www/conf/2019/talks.html b/foundation/www/conf/2019/talks.html index 40168312..4a788c98 100644 --- a/foundation/www/conf/2019/talks.html +++ b/foundation/www/conf/2019/talks.html @@ -1,38 +1,6 @@ {% extends "templates/base.html" %} {% block title %}Talks and Sessions{% endblock %} - -{% set platinum_sponsors = [ - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #1', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #2', - 'website_url': 'http://www.example.com/' - } -] %} - -{% set silver_sponsors = [ - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #3', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #4', - 'website_url': 'http://www.example.com/' - }, - { - 'image': '/assets/foundation/img/no-image.png', - 'title': 'Global Company #5', - 'website_url': 'http://www.example.com/' - }, -] %} - {% block content %}
@@ -97,12 +65,12 @@

Connect with the core team, maintainers, developers, implementors. If you are connected to ERPNext, this is an event you cannot miss.

- -{% macro show_section(sponsors, with_img = False, color=False) %} -
- {% for sponsor in sponsors %} - - {% if loop.index is divisibleby 4 %} -
- {% endif %} - {% endfor %} -
-{% endmacro %} - -
-
-
-

Become a Sponsor

-

Become a patron for the conference and get associated with a global community of tens of thousands of users and developers.

- Sponsor -
-
- {% if platinum_sponsors %} -

Platinum Sponsors

- {{ show_section(platinum_sponsors, color=True, with_img=True) }} - {% endif %} - - {% if gold_sponsors %} -

Gold Sponsors

- {{ show_section(gold_sponsors, with_img=True) }} - {% endif %} - - {% if silver_sponsors %} -

Silver Sponsors

- {{ show_section(silver_sponsors, with_img=True) }} - {% endif %} -

-
-
+{% from "www/conf/2019/sponsor.html" import sponsor %} +{{ sponsor() }}