From fb121e9d7a8fcbb79c089a8bfe0723f379d9b713 Mon Sep 17 00:00:00 2001 From: yvovandoorn Date: Sun, 8 May 2016 11:43:05 +0200 Subject: [PATCH 01/11] Change Sponsor status to closed Former-commit-id: a54cfe1c7e411ac9f352aea8ef96890dbcbbe128 --- data/events/2016-amsterdam.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/data/events/2016-amsterdam.yml b/data/events/2016-amsterdam.yml index 637f2a88218..cf5867a660d 100644 --- a/data/events/2016-amsterdam.yml +++ b/data/events/2016-amsterdam.yml @@ -5,6 +5,7 @@ friendly: "2016-amsterdam" # Four digit year and the city name in lower-case. Do # Datus and status status: "current" # Options are "past" or "current". Use "current" for upcoming. +sponsor_status: "closed" startdate: 2016-06-29 # The start date of your event. Leave blank if you don't have a venue reserved yet. enddate: 2016-07-01 # The end date of your event. Leave blank if you don't have a venue reserved yet. cfp_date_start: 2016-01-15 # start accepting talk proposals. From 5126a7ca80214a4b60971692fb7b982aeca22c3a Mon Sep 17 00:00:00 2001 From: yvovandoorn Date: Sun, 8 May 2016 11:43:29 +0200 Subject: [PATCH 02/11] Add ability to remove href when sponsor_status is set to 'closed' Former-commit-id: c475858403878d6c72ebc1ff80fcc66f3ee2f295 --- .../devopsdays-legacy/layouts/partials/event_footer.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/themes/devopsdays-legacy/layouts/partials/event_footer.html b/themes/devopsdays-legacy/layouts/partials/event_footer.html index a24b9360cb4..737f2d83eef 100644 --- a/themes/devopsdays-legacy/layouts/partials/event_footer.html +++ b/themes/devopsdays-legacy/layouts/partials/event_footer.html @@ -19,9 +19,14 @@

{{ .label }} Sponsors

{{ end }} {{ end }} {{ if eq $e.status "current" }} - + {{ end }} {{ else }} From dd0c494b5289d71d992f0b70b71afb06fab75be8 Mon Sep 17 00:00:00 2001 From: yvovandoorn Date: Sun, 8 May 2016 11:43:51 +0200 Subject: [PATCH 03/11] Add sample to sample yaml file Former-commit-id: 06a8435995e384b6c72d64f303fc85df0ce546c7 --- yyyy-city.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/yyyy-city.yml b/yyyy-city.yml index d72e2b4443b..1f06f5702b0 100644 --- a/yyyy-city.yml +++ b/yyyy-city.yml @@ -47,6 +47,7 @@ sponsors: - id: arresteddevops level: community +sponsor_status : open sponsor_levels: # In this section, list the level of sponsorships and the label to use. - id: gold label: Gold From 3b183de19968acede5278fd1f46cf2dde51161e8 Mon Sep 17 00:00:00 2001 From: yvovandoorn Date: Sun, 8 May 2016 11:49:05 +0200 Subject: [PATCH 04/11] renamed option from 'sponsor_status' to 'sponsor_link_ask' Former-commit-id: 6d97f464842e61406ec78c01b00bd82ffc2f202b --- data/events/2016-amsterdam.yml | 2 +- themes/devopsdays-legacy/layouts/partials/event_footer.html | 3 ++- yyyy-city.yml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/events/2016-amsterdam.yml b/data/events/2016-amsterdam.yml index cf5867a660d..1552af52c30 100644 --- a/data/events/2016-amsterdam.yml +++ b/data/events/2016-amsterdam.yml @@ -5,7 +5,7 @@ friendly: "2016-amsterdam" # Four digit year and the city name in lower-case. Do # Datus and status status: "current" # Options are "past" or "current". Use "current" for upcoming. -sponsor_status: "closed" +sponsor_link_ask: "closed" startdate: 2016-06-29 # The start date of your event. Leave blank if you don't have a venue reserved yet. enddate: 2016-07-01 # The end date of your event. Leave blank if you don't have a venue reserved yet. cfp_date_start: 2016-01-15 # start accepting talk proposals. diff --git a/themes/devopsdays-legacy/layouts/partials/event_footer.html b/themes/devopsdays-legacy/layouts/partials/event_footer.html index 737f2d83eef..64c409b1271 100644 --- a/themes/devopsdays-legacy/layouts/partials/event_footer.html +++ b/themes/devopsdays-legacy/layouts/partials/event_footer.html @@ -19,8 +19,9 @@

{{ .label }} Sponsors

{{ end }} {{ end }} {{ if eq $e.status "current" }} - {{ if eq $e.sponsor_status "closed" }} + {{ if eq $e.sponsor_link_ask "closed" }} {{ else }}