Merge branch 'stable' of ssh://vcs.fsf.org/libreplanet-static into stable
[libreplanet-static.git] / 2021 / assets / js / stream.js
index ec32f1ed69a688b6b20f0cfa771f033a853cbeb0..f2cfc1570ec0eff40fc620b85b983eeaece6e9ec 100644 (file)
@@ -308,18 +308,17 @@ app.view = function(ctrl) {
   // show or hide irc info based on page URL
   if (!window.location.pathname.match(RegExp("\/2021\/live.*"))) {
     var irc_info = [
-      "Freenode IRC channel for ",
-      stream.name,
-      ": ",
-      m("br"),
+      "This room's channel: ",
       m("strong", ["/join ", stream.ircChannel])
     ];
+    // set css to show irc links in sidebar
+    document.querySelector('#irc-links-panel').style.display = "block";
   } else {
     var irc_info = [
       m("strong", [
         m("a", { target: "_blank", href: "https://my.fsf.org/civicrm/event/info?reset=1&id=92" }, "Register"),
       ]),
-      " to access more IRC rooms. ",
+      " gratis to access more IRC rooms. ",
       m("strong", [
         m("a", { href: "/2021/registered/live/" }, "Already registered?"),
       ])
@@ -354,7 +353,6 @@ app.view = function(ctrl) {
         m("strong", "#libreplanet")
       ])
     ]),
-    m("h2", "IRC")
   ];
 };