This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/comdev-events-site.git
The following commit(s) were added to refs/heads/main by this push:
new e4c3e05 Show html link and description if not already used
e4c3e05 is described below
commit e4c3e05a7cdfa0959f6ef16b869c659e3d95636b
Author: Sebb <[email protected]>
AuthorDate: Tue Sep 16 17:15:24 2025 +0100
Show html link and description if not already used
---
static/js/events-calendar.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/static/js/events-calendar.js b/static/js/events-calendar.js
index 1036993..db1fc24 100644
--- a/static/js/events-calendar.js
+++ b/static/js/events-calendar.js
@@ -53,7 +53,10 @@ $.ajax({
html += ev.summary;
}
if (link) { html += "</a>"; }
- html += " - <i>" + when + "</i>";
+ html += " - <a href='" + ev.htmlLink + "'><i>" + when +
"</i></a>";
+ if (ev.description && !link) { // add description if not already
used
+ html += "<br/>" + ev.description;
+ }
if (ev.location) {
html += "<br/>"+ev.location;
}