[guadec-web/oscp-2019] Make highlight section conditional
- From: Tom Tryfonidis <tomtryf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web/oscp-2019] Make highlight section conditional
- Date: Fri, 29 Mar 2019 08:26:21 +0000 (UTC)
commit 817cca34f5d5c6c1b0db8965d01bbfcdc32fcc00
Author: Tom Tryfonidis <tomtryf gmail com>
Date: Fri Mar 29 01:24:31 2019 +0200
Make highlight section conditional
This allows to keep the section always visible while keeping the layout of the page
pelicanconf.py | 1 +
src/haml/index.haml | 54 +++++++++++++++++++++++++++++++++--------------------
2 files changed, 35 insertions(+), 20 deletions(-)
---
diff --git a/pelicanconf.py b/pelicanconf.py
index 5d9717c..02a5144 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -35,6 +35,7 @@ SITEURL = 'http://%s:8000' % SITEDOMAIN
GUADEC_LOCATION = "Thessaloniki, Greece"
GUADEC_DATES = "August 23<sup>rd</sup> — 28<sup>th</sup>"
OPEN_REGISTRATION = False
+OPEN_CFP = False
# Menu links
MENU = {
diff --git a/src/haml/index.haml b/src/haml/index.haml
index 40fb618..fa76867 100644
--- a/src/haml/index.haml
+++ b/src/haml/index.haml
@@ -85,39 +85,53 @@
%p Join us to find out about the latest technical developments, learn new skills and tools,
attend talks by leading experts, and participate in workshops and discussions. You will also get the
opportunity to participate in the GNOME project, meet community members, as well as connect with local groups
and organizations.
- -#.highlights-home
+ .highlights-home
.container
.row
.highlight.dates-home.col-md-4.text-center
- .icon.oi.oi-calendar
- .h5
- SAVE THE DATE
- %p
- Days 1-3 are
- %a{:href => "/pages/schedule.html"}
- talks,
- days 4-6 are
- %a{:href => "/pages/unconference.html"}
- workshops and training
+ - if OPEN_CFP
+ .icon.oi.oi-calendar
+ .h5
+ SAVE THE DATE
+ %p
+ Days 1-3 are
+ %a{:href => "/pages/schedule.html"}
+ talks,
+ days 4-6 are
+ %a{:href => "/pages/unconference.html"}
+ workshops and training
+ - else
+ .icon.oi.oi-calendar
+ .h5
+ SAVE THE DATE
+ %p
+ Days 1-3 are talks,
+ days 4-6 are workshops and training
.highlight.talks-home.col-md-4.text-center
- .icon.oi.oi-chat
- .h5
- TALKS
- %p
- See the talks schedule
- %a{:href => "/pages/schedule.html"}
- here
+ - if OPEN_CFP
+ .icon.oi.oi-chat
+ .h5
+ TALKS
+ %p
+ See the talks schedule
+ %a{:href => "/pages/schedule.html"}
+ here
+ - else
+ .icon.oi.oi-chat
+ .h5
+ TALKS
+ %p
+ Call for Papers is not open yet.
.highlight.register-home.col-md-4.text-center
- if OPEN_REGISTRATION
- %a{:href => "https://registration.guadec.org/", :rel => "nofollow", :target =>
"_blank"}
.icon.oi.oi-circle-check
.h5
REGISTER
+ %a{:href => "https://registration.guadec.org/", :rel => "nofollow", :target =>
"_blank"}
%p
Registration is open now!
-
- else
.icon.oi.oi-circle-check
.h5
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]