From 216ca76fc3518d5369b3501822a22cd712dec548 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 5 Feb 2022 15:11:30 +0100 Subject: server: extract the function reading the module id and groups A new function, listing events with no location, will also need to read the module id and groups from request parameters. Extract the function taking care of that to avoid code duplication. This also adds a button on the link page, to access to the page listing events without location. This feature is not yet implemented. Signed-off-by: Alban Gruin --- src/pages.mli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pages.mli') diff --git a/src/pages.mli b/src/pages.mli index 0e2180e..4618faf 100644 --- a/src/pages.mli +++ b/src/pages.mli @@ -1,5 +1,5 @@ (* - * Copyright (C) 2020, 2021 Alban Gruin + * Copyright (C) 2020 -- 2022 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 @@ -16,5 +16,5 @@ *) val main : string -val link : string -> string +val link : ?args:(string * string list) -> string -> string val select : string -> string Seq.t -> string -- cgit v1.2.1