Skip to content

Commit

Permalink
Don't display reservation link in geotrek-rando
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Jul 3, 2023
1 parent 32cebaa commit 81caae9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install/scriptsFooter.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
});

const today = new Date();
if (today >= endDate) {
if (eventData.bookable == false) {
// Evenement sans réservation
return
} else if (today >= endDate) {
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
const closedMessage = Object.assign(document.createElement('p'), {
innerText: `Les inscriptions pour cet événement sont terminées.`,
Expand Down

0 comments on commit 81caae9

Please sign in to comment.