added irc channel join commands in sidebar
authorAndrew Engelbrecht <andrew@fsf.org>
Wed, 17 Mar 2021 21:55:54 +0000 (17:55 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 17 Mar 2021 21:56:42 +0000 (17:56 -0400)
it only shows up outside of /2021/live/, so under the registered space.

2021/assets/js/stream.js
2021/includes/live_sidebar.html

index 1e7686b7dbab62a35d0c1f45350d5619cb9155ef..f2cfc1570ec0eff40fc620b85b983eeaece6e9ec 100644 (file)
@@ -311,6 +311,8 @@ app.view = function(ctrl) {
       "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", [
index 6c764f1b132aa3568cf84d1af453abb1bda2fb9a..0f18abbb2f4d1e24eb1f623659ee2cc9ba1ea67d 100644 (file)
 </div>
 <!-- end fsf shop box -->
 
+<!-- start irc links bar -->
+<div id="irc-links-panel" class="panel panel-default" style="display: none">
+  <div class="panel-heading">
+       <h3 class="panel-title">IRC Links</h3>
+  </div>
+  <div class="panel-body">
+      <p>Copy and enter into IRC one line at a time:</p>
+<pre>/join #libreplanet_room_jupiter
+/join #libreplanet_room_saturn
+/join #libreplanet_room_neptune</pre>
+  </div>
+</div>
+<!-- end irc links bar -->
+
 <!-- start LP20 signup -->
 <div class="panel panel-default">
   <div class="panel-heading">