[Openstreetmap-dev] [patch] Link to help and bugzilla pages from anonymous map view page

Petter Reinholdtsen pere at hungry.com
Thu Jul 28 13:15:27 BST 2005


When using the OSM map viewer without logging in, there is no link to
the OSM wiki nor the bugzilla.  I find this slightly annoying, and
decided to do something about it.  This patch should make sure only
the edit and upload menu entries are hidden when not logged in.

Can someone test it and commit it if it is working?

Index: bottom.jsp
===================================================================
--- java/jsp/include/bottom.jsp	(revisjon 473)
+++ java/jsp/include/bottom.jsp	(arbeidskopi)
@@ -25,20 +25,24 @@
 
 <div id="left_menu">
   <h1><img src="/images/toolbox.png">Toolbox:</h1>
+
+  <ul>
+    <li>
+      <img src="/images/stock_edit-16.png"><a href="viewMap.jsp">View map</a>
+    </li>
 <%
 if(bLoggedIn)
 {
   %>
-  <ul>
     <li>
-      <img src="/images/stock_edit-16.png"><a href="viewMap.jsp">View map</a>
-    </li>
-    <li>
       <img src="/images/icon_key.png"><a href="editKeys.jsp">Edit keys</a>
     </li>
     <li>
       <img src="/images/stock_save-16.png"><a href="uploadGPX.jsp">Upload GPX</a>
     </li>
+    <%
+}
+%>
     <li>
       <img src="/images/stock_help-16.png"><a href="/wiki/">Help</a>
     </li>
@@ -47,21 +51,13 @@
     </li>
     
   </ul>
-  Internet Explorer has known problems with this site.
-  <%
-}
-else
+ 
+  Internet Explorer has known problems with this site.<br><br>
+<%
+if(bLoggedIn)
 {
   %>
-   <ul>
-    <li>
-      <img src="/images/stock_edit-16.png"><a href="viewMap.jsp">View map</a>
-    </li>
-   </ul>
- 
   You need to <a href="login.jsp">log in</a> to use more tools :-)<br><br>
-
-  Internet Explorer has known problems with this site.
   <%
 }
 





More information about the dev mailing list