Skip to content

Commit 25b28d3

Browse files
authored
Disable virtual attend buttons before we're ready (#474)
1 parent 22cbd22 commit 25b28d3

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ custom:
8080
content: <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a>
8181

8282
site_code: <a href="https://github.com/SeaGL/seagl.github.io/blob/main/LICENSE">GPL v3.0</a>
83+
readiness:
84+
attend_portal_launched: false
85+
matrix_space_created: false
8386
url:
8487
irc:
8588
network: https://libera.chat/

attend.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ title: Attend SeaGL 2025
5858
<div class="panel-heading"><h2 class="panel-title">SeaGL {{ site.custom.year }} Account</h2></div>
5959
<div class="panel-body">
6060
<p>We'll set you up with a Matrix account to attend. Your account will go away when the conference is over.</p>
61-
<p><a class="btn btn-primary btn-large" href="/attend/ephemeral">Take me to the conference</a></p>
61+
{%- if site.custom.readiness.attend_portal_launched -%}
62+
<p><a class="btn btn-primary btn-large" href="/attend/ephemeral">Take me to the conference</a></p>
63+
{%- else -%}
64+
<p><span class="btn btn-primary btn-large" disabled>Take me to the conference (soon!)</span></p>
65+
{%- endif -%}
6266
<p>Pick this if you've never used Matrix before.</p>
6367
</div>
6468
</div>
@@ -68,14 +72,24 @@ title: Attend SeaGL 2025
6872
<div class="panel-heading"><h2 class="panel-title">Any Matrix Account</h2></div>
6973
<div class="panel-body">
7074
<p>We'll give you instructions to get into our Matrix space and help you navigate the conference.</p>
71-
<p><a class="btn btn-primary btn-large" href="/attend/existing">Join with my Matrix account</a></p>
75+
{%- if site.custom.readiness.matrix_space_created -%}
76+
<p><a class="btn btn-primary btn-large" href="/attend/existing">Join with my Matrix account</a></p>
77+
{%- else -%}
78+
<p><span class="btn btn-primary btn-large" disabled>Join with my Matrix account (soon!)</span></p>
79+
{%- endif -%}
7280
<p>Pick this if you already have a Matrix account.</p>
7381
</div>
7482
</div>
7583
</div>
7684
</div>
7785

78-
<div class="text-center">Click <a href="/watch">here</a> to just watch and not participate in chat.</div>
86+
<div class="text-center">
87+
{%- if site.custom.readiness.matrix_space_created and site.custom.readiness.attend_portal_launched -%}
88+
Click <a href="/watch">here</a> to just watch and not participate in chat.
89+
{%- else -%}
90+
Closer to the conference, we will also provide a link here to just watch and not participate in chat.
91+
{%- endif -%}
92+
</div>
7993

8094
<!-- class="row" -->
8195
</div>

0 commit comments

Comments
 (0)