]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/roomlist.js
room list renderer is now aware of which rooms are forum view:
[citadel.git] / webcit-ng / static / js / roomlist.js
index e2f44ec136b847dba8e37d801bfa0438d2f417b8..7c611f97a7f489d87c65488a4e2178f95fbccb30 100644 (file)
@@ -1,4 +1,3 @@
-//
 // Copyright (c) 2016-2022 by the citadel.org team
 //
 // This program is open source software.  It runs great on the
@@ -53,12 +52,17 @@ function display_room_list_renderer(data) {
                        }
                }
                new_roomlist_text = new_roomlist_text +
-                       "<li>"
+                         "<li>"
                        + (data[i].hasnewmsgs ? "<b>" : "")
                        + "<a href=\"javascript:gotoroom('" + escapeJS(escapeHTML(data[i].name)) + "');\">"
                        + escapeHTML(data[i].name)
                        + (data[i].hasnewmsgs ? "</b>" : "")
-                       + "</a></li>"
+                       + "</a>"
+               if (data[i].current_view == views.VIEW_BBS) {
+                       new_roomlist_text = new_roomlist_text + "(FORUM)";
+               }
+               new_roomlist_text = new_roomlist_text +
+                         "</li>"
                ;
        }
        new_roomlist_text = new_roomlist_text + "</ul>";