summaryrefslogtreecommitdiffhomepage
path: root/resources/pug/finals
diff options
context:
space:
mode:
authorCamil Staps2023-01-31 16:12:46 +0100
committerCamil Staps2023-01-31 16:12:46 +0100
commitfa9a7bdec79196076caed8631c7dc2785eb24b0e (patch)
treea65bd910b6a12947fda54a610dab291f343973a0 /resources/pug/finals
parentAdd teaching 2022-23 (diff)
Minor improvements to conferences page
Diffstat (limited to 'resources/pug/finals')
-rw-r--r--resources/pug/finals/conferences.pug22
1 files changed, 12 insertions, 10 deletions
diff --git a/resources/pug/finals/conferences.pug b/resources/pug/finals/conferences.pug
index c25e914..50edd1a 100644
--- a/resources/pug/finals/conferences.pug
+++ b/resources/pug/finals/conferences.pug
@@ -22,16 +22,16 @@ block extra_head
color: gray;
}
- table.conferences i.fas, table.conferences i.fab {
- margin-right: .2ex;
+ table.conferences td, table.conferences th {
+ white-space: nowrap;
}
- .green {
- color: #0a0;
+ table.conferences td:last-child {
+ white-space: normal;
}
- .red {
- color: #a00;
+ table.conferences i.fas, table.conferences i.fab {
+ margin-right: .2ex;
}
block titleContainer
@@ -124,6 +124,7 @@ block content
total_days: Math.round(conferences.map(nr_of_days).reduce((x,y) => x + y, 0)),
total_footprint: conferences.map(compute_carbon_footprint).reduce((x,y) => x + y, 0),
};
+ summary.total_footprint_percentage = Math.round(100 * summary.total_footprint / 3284400);
summary.total_footprint_per_day = summary.total_footprint / summary.total_days;
return summary;
@@ -147,7 +148,7 @@ block content
mixin listconferences()
-
- conferences.sort((x,y) => x.from - y.from || x.to - y.to);
+ conferences.sort((x,y) => y.from - x.from || y.to - x.to);
let last_year = null;
table.conferences
@@ -171,8 +172,9 @@ block content
td(colspan=7).
#[strong= summary.conferences] conference#{summary.conferences == 1 ? '' : 's'}
over #[strong= summary.total_days] day#{summary.total_days == 1 ? '' : 's'},
- for a total of #[strong= (summary.total_footprint).toLocaleString('en')] g CO#[sub 2],
- averaging #[strong(class!=summary.total_footprint_per_day > 2125 ? 'red' : 'green')= (summary.total_footprint_per_day).toLocaleString('en', {maximumFractionDigits: 0})] g CO#[sub 2] / day.
+ for a total of #[strong= (summary.total_footprint).toLocaleString('en')] g CO#[sub 2]
+ (#{summary.total_footprint_percentage.toLocaleString('en')}% of the yearly Dutch average),
+ averaging #[strong= (summary.total_footprint_per_day).toLocaleString('en', {maximumFractionDigits: 0})] g CO#[sub 2] / day.
tr.entry
td
@@ -232,6 +234,6 @@ block content
+conf('2022-01-12 to 14', 'Online', 0, 'AIL2', 'Agency and Intentions in Language')(url='https://ail-workshop.github.io/AIL2-Workshop/')
+conf('2022-08-24 to 27', 'Bucharest', 1700, 'SLE2022', 'Societas Linguistica Europaea')(train=107, plane=1800, airbnb, url='https://societaslinguistica.eu/sle2022/')
+conf('2022-11-19 to 22', 'Denver', 7840, 'SBL2022', 'Society of Biblical Literature')(train=107, plane=7748, hotel, url='https://www.sbl-site.org/meetings/AnnualMeeting.aspx')
- +conf('2022-12-8 to 9', 'Tilburg', 7840, 'CogLing Days 9', 'CogLing Days 9')(train=68, multiplier=4, url='https://benecla.com/')
+ +conf('2022-12-8 to 9', 'Tilburg', 62, 'CogLing Days 9', 'CogLing Days 9')(train=68, multiplier=4, url='https://benecla.com/')
+listconferences()