To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 476f0b32 authored by Florian Moser's avatar Florian Moser
Browse files

Add recording URLs

parent 5cb18b8d
Pipeline #91228 passed with stage
in 3 minutes and 29 seconds
startTime: '17:15'
endTime: '19:00'
location: 'https://ethz.zoom.us/j/64816418959'
recording: 'https://static.thealternative.ch/thealternative.ch/2021-04-19 - Git - Florian Moser.mp4'
description: |
Git is the state-​of-the-art version control system, taking away the pain of continuously changing file versions. Keep track of who changed what, when and why, and revert changes easily.
GitLab allows you to save the files to the cloud, giving you a secure backup location and enabling easy collaboration. Never lose your files again, and coordinate changes in even bigger projects with ease.
......
......@@ -58,6 +58,11 @@ function getEvent(string $filePath)
if (isset($event["signup"])) {
unset($event["signup"]);
}
// hide online participation URLs when the event is over
if (filter_var($event["location"], FILTER_VALIDATE_URL) && strpos($event["location"], "https://ethz.zoom") === 0) {
$event["location"] = "Online";
}
}
return $event;
......@@ -99,6 +104,9 @@ function printEventsList(array $relevantEventFiles, bool $areFutureEvents = fals
<?php if (isset($event["signup"])) { ?>
| <a target="_blank" href="<?= $event["signup"] ?>">register</a>
<?php } ?>
<?php if (isset($event["recording"])) { ?>
| <a target="_blank" href="<?= $event["recording"] ?>">recording</a>
<?php } ?>
</p>
<div class="description">
<?php if (isset($event["cancelled"]["reason"])) { ?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment