]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/t/navbar.html
Wrap the 'Edit this wiki page' link in GetLoggedInFirst()
[citadel.git] / webcit / static / t / navbar.html
index 70372820f16c1f218a82ca322af70afd5af1dcb8..d862778ed51bae6fd33b84a424a3fc15b80950f5 100644 (file)
@@ -20,7 +20,7 @@
                </a>
        </li>
        <li class="newmess">
-               <a href="display_enter">
+               <a href="javascript:GetLoggedInFirst('display_enter')">
                        <img  src="static/newmess3_24x.gif" alt="" width="24" height="24">
                        <span class="navbar_link"><?_("Enter a message")></span>
                </a>
@@ -35,7 +35,7 @@
                </a>
        </li>
        <li class="addnewcontact">
-               <a href="display_enter">
+               <a href="javascript:GetLoggedInFirst('display_enter')">
                        <img src="static/addnewcontact_24x.gif" alt="" width="24" height="24">
                        <span class="navbar_link"><?_("Add new contact")></span>
                </a>
@@ -80,7 +80,7 @@
                </a>
        </li>
        <li class="newmess">
-               <a href="display_enter">
+               <a href="javascript:GetLoggedInFirst('display_enter')">
                        <img  src="static/newmess3_24x.gif" alt="" width="24" height="24">
                        <span class="navbar_link"><?_("Add new task")></span>
                </a>
                </a>
        </li>
        <li class="newmess">
-               <a href="display_enter">
+               <a href="javascript:GetLoggedInFirst('display_enter')">
                        <img  src="static/newmess3_24x.gif" alt="" width="24" height="24">
                        <span class="navbar_link"><?_("Write mail")></span>
                </a>
 <??("X", 70)>
 
 <?!("COND:THISROOM:CURR_VIEW", 80, #"VIEW_WIKI")>
+        <??("COND:WIKI:PAGE", 81, "home")>
        <li class="readallmess">
                <a href="wiki?page=home">
                        <img src="static/readallmess3_24x.gif" alt="" width="24" height="24">
                        <span class="navbar_link"><?_("Wiki home")></span>
                </a>
        </li>
-       <?!("COND:WIKI:PAGE", 82, "home")>
+       <?!("X", 81)>
                <li class="newmess">
-                               <a href="display_enter<?BSTR:FORWARD("page", "U")>">
+                               <a href="javascript:GetLoggedInFirst(encodeURIComponent('display_enter<?BSTR:FORWARD("page", "U")>'))">
                                        <img  src="static/newmess3_24x.gif" alt="" width="24" height="24">
                                        <span class="navbar_link"><?_("Edit this page")></span>
                                </a>
                        </li>
-       <??("X", 82)>
                <li class="newmess">
-                       <a href="wiki<?%("COND:WIKI:TYPE", 84, "wiki_history", "wut?", "", "_history")><?BSTR:FORWARD("page", "U")>">
+                       <a href="wiki<?%("COND:WIKI:TYPE", 84, "wiki_history", "", "", "_history")><?BSTR:FORWARD("page", "U")>">
                                <img  src="static/newmess3_24x.gif" alt="" width="24" height="24">
-                               <span class="navbar_link"><?%("COND:WIKI:TYPE", 86, "wiki_history", "wut?", '_("Current version")', '_("History")')></span>
+                               <span class="navbar_link"><?%("COND:WIKI:TYPE", 86, "wiki_history", "", _("Current version", _("History"))></span>
                        </a>
                </li>
 <??("X", 80)>