From 669b7e9c4a9229e7de37416f32878b39a184a878 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 --- 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 79537e14d434607ad7ee8d818e4a83617fe6bf78 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' --- .../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 a00128c630a6dfda5f5bde3245c668be9ab833fa 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 --- 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 491e908bddc46c7244e40c32a401bcb7ee3a86a0 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' --- 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 }}