[Openstreetmap-dev] [patch] Link to help and bugzilla pages from anonymous map view page
SteveC
steve at fractalus.com
Mon Aug 1 11:39:20 BST 2005
Hi Petter,
I can't get this to apply, the second hunk keeps failing and I can't see
why.
If you like, just update things in subversion and I'll rollback if it
doesn't work, or fix it...
* @ 28/07/05 01:15:27 PM pere at hungry.com wrote:
>
> 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.
> <%
> }
>
>
>
> _______________________________________________
> Openstreetmap-dev mailing list
> Openstreetmap-dev at vr.ucl.ac.uk
> http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap-dev
>
have fun,
SteveC steve at fractalus.com http://www.fractalus.com/steve/
More information about the dev
mailing list