diff options
author | lassulus <lassulus@lassul.us> | 2021-09-28 22:41:33 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-09-28 22:41:38 +0200 |
commit | e151cfd3298120ec541987d4beb155e18335a0d8 (patch) | |
tree | b6c49e47bcdcc2de617112d02893997ae238be8d /krebs/2configs | |
parent | f636869f26513deff75470d5e750a06d2b7b24e0 (diff) |
reaktor2: add link to wiki.r for each agenda item
Diffstat (limited to 'krebs/2configs')
-rw-r--r-- | krebs/2configs/reaktor2.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/krebs/2configs/reaktor2.nix b/krebs/2configs/reaktor2.nix index 79822668b..cbf3e7889 100644 --- a/krebs/2configs/reaktor2.nix +++ b/krebs/2configs/reaktor2.nix @@ -223,9 +223,13 @@ in { spanDate.title = new Date(entryDate).toString(); spanDate.appendChild(document.createTextNode(entryDate)); + const link = document.createElement("a"); + link.href = "http://wiki.r/agenda/" + encodeURIComponent(agendaItem.description.replaceAll("/", "\u29F8")); + link.appendChild(document.createTextNode(agendaItem.description)); + const dd = document.createElement("dd"); dd.className = "description"; - dd.appendChild(document.createTextNode(agendaItem.description)); + dd.appendChild(link); dd.appendChild(document.createTextNode(" ")); dd.appendChild(spanDate); |