From 7903af961e1dd841cb28037bbe750e5845129359 Mon Sep 17 00:00:00 2001
From: Martin Porcheron
Date: Tue, 10 Sep 2024 10:16:53 +0000
Subject: [PATCH] Standardise buttons across the site
---
_includes/button.html | 4 ++++
community/conf.html | 5 +----
community/sc.html | 11 +++--------
community/stats.html | 20 +++++++-------------
4 files changed, 15 insertions(+), 25 deletions(-)
create mode 100644 _includes/button.html
diff --git a/_includes/button.html b/_includes/button.html
new file mode 100644
index 0000000..983c168
--- /dev/null
+++ b/_includes/button.html
@@ -0,0 +1,4 @@
+
+
+ {{ include.text }}
+
\ No newline at end of file
diff --git a/community/conf.html b/community/conf.html
index 44b1220..a69f2a3 100644
--- a/community/conf.html
+++ b/community/conf.html
@@ -37,10 +37,7 @@ {{ site.data.conf_host.conference }} Expres
{{ site.data.conf_host.preamble }}
-
-
- Complete the EOI form
-
+ {%- include button.html link=site.data.conf_host.form icon="bi-person-raised-hand" text="Complete the EOI form" -%}
{{ site.data.conf_host.postamble }}
diff --git a/community/sc.html b/community/sc.html
index 6bf1775..f297452 100644
--- a/community/sc.html
+++ b/community/sc.html
@@ -75,10 +75,7 @@
Length/term of office
To be eligible to be nominated you must be a member of SIGCHI. Please submit nominations, for yourself or another, by {% include date.html date=site.data.sc.nominations_settings.deadline -%}, Anywhere on Earth (AoE).
-
-
- Complete the nomination form
-
+ {%- include button.html link=site.data.sc.nominations_settings.link icon="bi-person-raised-hand" text="Complete the nomination form" -%}
If you would like any further details about the nominations or elections process, or any of the roles, email {{ site.data.sc.nominations_settings.contact.name }}.
@@ -116,10 +113,8 @@
Constitution
The constitution for the ACM Conversational User Interfaces conference sets out the structure and organisational procedures that govern the conference and workshop series.
-
-
- Download the latest constitution
-
+ {%- assign link = site.data.const.file | relative_url -%}
+ {%- include button.html link=link icon="bi-file-earmark-arrow-down-fill" text="Download the constitution" classes="me-2" -%}
Last updated and approved: {% include date.html date=site.data.const.date -%}
diff --git a/community/stats.html b/community/stats.html
index d3427ac..f6be13d 100644
--- a/community/stats.html
+++ b/community/stats.html
@@ -79,10 +79,9 @@
Registration* statistics
{%- assign footnote_index = footnote_index | plus: 1 -%}
{%- endfor -%}
-
-
- Download this table as a CSV
-
+
+ {%- assign link = "/community/assets/csv/statistics/registrations.csv" | relative_url -%}
+ {%- include button.html link=link icon="bi-file-earmark-arrow-down-fill" text="Download this table as a CSV" classes="mt-3" -%}
@@ -143,11 +142,8 @@ Programme statistics
-
-
- Download these tables as a CSV
-
-
+ {%- assign link = "/community/assets/csv/statistics/programme.csv" | relative_url -%}
+ {%- include button.html link=link icon="bi-file-earmark-arrow-down-fill" text="Download these tables as a CSV" classes="mt-3" -%}
@@ -183,10 +179,8 @@ Programme award statistics
-
-
- Download this table as a CSV
-
+ {%- assign link = "/community/assets/csv/statistics/awards.csv" | relative_url -%}
+ {%- include button.html link=link icon="bi-file-earmark-arrow-down-fill" text="Download this table as a CSV" classes="mt-3" -%}
{%- include sidebar.html -%}
\ No newline at end of file