Fixed some rendering problems in webcit that resulted from the removal of VIEW_WIKIMD...
authorArt Cancro <ajc@citadel.org>
Thu, 9 Sep 2021 21:22:33 +0000 (21:22 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 9 Sep 2021 21:22:33 +0000 (21:22 +0000)
webcit/static/t/navbar.html
webcit/static/t/room/create.html
webcit/static/t/room/create_blog.html
webcit/static/t/view_message.html
webcit/static/t/viewomatic.html

index 21cad17..a62ca7b 100644 (file)
        <?!("X", 82)>
 <??("X", 80)>
 
-<?!("COND:THISROOM:CURR_VIEW", 80, #"VIEW_WIKIMD")>
-        <??("COND:WIKI:PAGE", 81, "home")>
-       <li class="readallmess">
-               <a href="wiki?page=home?go=<?THISROOM:NAME("U")>">
-                       <img src="static/webcit_icons/essen/16x16/readallmsg.png" alt="" width="16" height="16">
-                       <span class="navbar_link"><?_("Wiki home")></span>
-               </a>
-       </li>
-       <?!("X", 81)>
-               <li class="newmess">
-                               <a href="javascript:GetLoggedInFirst(encodeURIComponent('display_enter<?BSTR:FORWARD("page", "U")>'))">
-                                       <img  src="static/webcit_icons/essen/16x16/pencil.png" alt="" width="16" height="16">
-                                       <span class="navbar_link"><?_("Edit this page")></span>
-                               </a>
-                       </li>
-               <li class="newmess">
-                       <a href="wiki<?%("COND:WIKI:TYPE", 84, "wiki_history", "", "", "_history")><?BSTR:FORWARD("page", "U")>">
-                               <img  src="static/webcit_icons/essen/16x16/pen.png" alt="" width="16" height="16">
-                               <span class="navbar_link"><?%("COND:WIKI:TYPE", 86, "wiki_history", "", _("Current version", _("History"))></span>
-                       </a>
-               </li>
-        <??("COND:THISROOM:IS_EDIT", 82)>
-       <li class="publishmessage">
-               <a href="javascript:publishMessage()">
-                       <img src="static/webcit_icons/essen/16x16/skiproom.png" alt="" width="16" height="16">
-                       <span class="navbar_link"><?_("publish to blog")></span>
-               </a>
-       </li>
-       <?!("X", 82)>
-<??("X", 80)>
-
 <?!("COND:THISROOM:CURR_VIEW", 90, #"VIEW_BLOG")>
        <li class="newmess">
                <a href="javascript:GetLoggedInFirst('display_enter')">
index 99cbde4..5dbb9d5 100644 (file)
@@ -56,10 +56,6 @@ else {
 
 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_WIKI")><option value="<?DEF:VAL(#"VIEW_WIKI")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_WIKI", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_WIKI", "X")></option><??("X", 1)>
 
-<?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_WIKIMD")><option value="<?DEF:VAL(#"VIEW_WIKIMD")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_WIKIMD", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_WIKIMD", "X")></option><??("X", 1)>
-
-<!-- <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_CALBRIEF")><option value="<?DEF:VAL(#"VIEW_CALBRIEF")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_CALBRIEF", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_CALBRIEF", "X")></option><??("X", 1)> -->
-
 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_JOURNAL")><option value="<?DEF:VAL(#"VIEW_JOURNAL")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_JOURNAL", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_JOURNAL", "X")></option><??("X", 1)>
 
 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_BLOG")><option value="<?DEF:VAL(#"VIEW_BLOG")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_BLOG", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_BLOG", "X")></option><??("X", 1)>
index d012a47..b1659b3 100644 (file)
@@ -41,7 +41,6 @@
 <?_("Articles will be published from wiki articles to the blog. Choose your prefered source wiki format:")>
 <select name="er_view" id="er_view" size="1">
 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_WIKI")><option value="<?DEF:VAL(#"VIEW_WIKI")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_WIKI", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_WIKI", "X")></option><??("X", 1)>
-<?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_WIKIMD")><option value="<?DEF:VAL(#"VIEW_WIKIMD")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_WIKIMD", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_WIKIMD", "X")></option><??("X", 1)>
 
 </select>
 <div id="er_view_fixed" style="display: none;">xxx</div></td></tr>
index 458d174..e2d32c8 100644 (file)
@@ -1,6 +1,6 @@
 <div class="message" id="msgdiv|<?MAIL:SUMM:N>|<?MAIL:SUMM:INREPLYTO()>">
 <?!("COND:ROOM:TYPE_IS", 13, #"VIEW_BBS")><a name="<?MAIL:SUMM:N>"></a><??("X", 13)>
-<??("COND:ROOM:TYPE_IS", 12, #"VIEW_WIKI")><??("COND:ROOM:TYPE_IS", 12, #"VIEW_WIKIMD")><!-- skip headers for wiki rooms -->
+<??("COND:ROOM:TYPE_IS", 12, #"VIEW_WIKI")>
 <div class="message_header">
 <?!("COND:ROOM:TYPE_IS", 14, #"VIEW_BBS")><a href="<?MAIL:SUMM:PERMALINK>">[#]</a><??("X", 14)>
  <span><?MAIL:SUMM:DATEFULL></span>
index e02b9f4..a21d527 100644 (file)
 
 <?!("COND:THISROOM:HAVE_VIEW", 1, #"VIEW_WIKI")><option value="changeview?view=<?DEF:VAL(#"VIEW_WIKI")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_WIKI", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_WIKI", "X")></option><??("X", 1)>
 
-<?!("COND:THISROOM:HAVE_VIEW", 1, #"VIEW_WIKIMD")><option value="changeview?view=<?DEF:VAL(#"VIEW_WIKIMD")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_WIKIMD", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_WIKIMD", "X")></option><??("X", 1)>
-
-<!-- <?!("COND:THISROOM:HAVE_VIEW", 1, #"VIEW_CALBRIEF")><option value="changeview?view=<?DEF:VAL(#"VIEW_CALBRIEF")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_CALBRIEF", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_CALBRIEF", "X")></option><??("X", 1)> -->
-
 <?!("COND:THISROOM:HAVE_VIEW", 1, #"VIEW_JOURNAL")><option value="changeview?view=<?DEF:VAL(#"VIEW_JOURNAL")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_JOURNAL", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_JOURNAL", "X")></option><??("X", 1)>
 
 <?!("COND:THISROOM:HAVE_VIEW", 1, #"VIEW_BLOG")><option value="changeview?view=<?DEF:VAL(#"VIEW_BLOG")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_BLOG", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_BLOG", "X")></option><??("X", 1)>