<!--
---- Copyright (c) 1996-2022 by Art Cancro and the citadel.org team.
----- This program is open source software. You can redistribute it and/or
----- modify it under the terms of the GPL (General Public License) version 3.
+---- This program is open source software. Use, duplication, or
+---- disclosure are subject to the GNU General Public License v3.
-->
<html>
<span class="w3-bar-item" id="ctdl-logo">CITADEL</span>
</span>
<span class="w3-center">
- <span id="ctdl_banner_title" class="w3-bar-item">XXX</span>
+ <span id="ctdl_banner_title" class="w3-bar-item">---</span>
</span>
<span class="w3-right">
<button id="ctdl-newmsg-button" style="display:none" class="w3-bar-item w3-button" onclick="entmsg_dispatcher();">enter</button>
<hr>
<div id="ctdl-sidebar" class="w3-bar-block">
<a href="#" class="w3-bar-item w3-button w3-padding-16 w3-hide-large w3-dark-grey w3-hover-black" onclick="w3_close()" title="close menu"><i class="fa fa-remove fa-fw"></i> Close Menu</a>
- <a href="#" id="ctdl-sidebar-mail-button" class="w3-bar-item w3-button w3-padding"><i class="fa fa-envelope fa-fw"></i> Mail</a>
+ <a href="#" id="ctdl-sidebar-button-mail" class="w3-bar-item w3-button w3-padding" onClick="gotoroom('_MAIL_');"><i class="fa fa-envelope fa-fw"></i> Mail</a>
<div id="ctdl_mail_folder_list" style="display:none"></div>
<a href="#" id="ctdl-sidebar-button-forums" class="w3-bar-item w3-button w3-padding" onClick="render_room_list();"><i class="fas fa-comments fa-fw"></i> Forums</a>
<a href="#" id="ctdl-sidebar-button-calendar" class="w3-bar-item w3-button w3-padding"><i class="fa fa-calendar-alt fa-fw"></i> Calendar</a>
-//
// Copyright (c) 2016-2022 by the citadel.org team
//
// This program is open source software. Use, duplication, or
}
switch(current_view) {
+
+ // The "forum" module displays rooms with the "VIEW_BBS" view as classic style web forums.
case views.VIEW_BBS:
document.getElementById("ctdl-sidebar-button-forums").classList.add("w3-blue");
document.getElementById("ctdl-main").innerHTML = "<div id=\"ctdl-mrp\" class=\"ctdl-msg-reading-pane\"></div>";
forum_readmessages("ctdl-mrp", gt_msg, lt_msg);
break;
+
+ // The "mail" module displays rooms with the VIEW_MAILBOX view as a webmail program.
+ case views.VIEW_MAILBOX:
+ document.getElementById("ctdl-sidebar-button-mail").classList.add("w3-blue");
+ document.getElementById("ctdl-main").innerHTML = "mailbox view";
+ break;
+
default:
document.getElementById("ctdl-main").innerHTML =
"<center>The view for " + current_room + " is " + current_view + " but there is no renderer.</center>";