From 4b05babc1e5a4466028d7d210d9a7920a4a401f7 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 19 Sep 2021 12:29:50 +0200 Subject: server, ics, pages: allow to generate ICS from modules This adds the ability to generate an ICS file from a module ID, and to filter it based on its groups. To do this, you can enter a module ID on the frontpage. Then, µCS will fetch the timetable, then return a page where one can select the group(s) they want to filter (this is enabled by the new Ics.get_all_groups function). Then, µCS is able to generate a link to that calendar, not unlike with a single group ID. Signed-off-by: Alban Gruin --- src/pages.mli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pages.mli') diff --git a/src/pages.mli b/src/pages.mli index aef68b4..0e2180e 100644 --- a/src/pages.mli +++ b/src/pages.mli @@ -1,5 +1,5 @@ (* - * Copyright (C) 2020 Alban Gruin + * Copyright (C) 2020, 2021 Alban Gruin * * ucs is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published @@ -17,3 +17,4 @@ val main : string val link : string -> string +val select : string -> string Seq.t -> string -- cgit v1.2.1