Author: tyrell
Date: Thu Dec 6 17:10:22 2007
New Revision: 10658
Log:
Limiting the Tasks Panel to logged in users
Modified:
trunk/mashup/java/modules/www/org/mashup.jsp
Modified: trunk/mashup/java/modules/www/org/mashup.jsp
==============================================================================
--- trunk/mashup/java/modules/www/org/mashup.jsp (original)
+++ trunk/mashup/java/modules/www/org/mashup.jsp Thu Dec 6 17:10:22 2007
@@ -265,16 +265,19 @@
<!--Checking whether a custom UI is available for this
Mashup-->
<script type="text/javascript">
- function customUiCallback(){
- document.getElementById("custom_ui_link").innerHTML =
'View the <a href="/services/<%= mashup %>/">HTML Interface</a> to the service'
+ function customUiCallback() {
+ document.getElementById("custom_ui_link").innerHTML =
+ 'View the <a href="/services/<%= mashup %>/">HTML
Interface</a> to the service'
}
- isCustomUiAvailable('/services/<%= mashup
%>',customUiCallback);
+ isCustomUiAvailable('/services/<%= mashup %>',
customUiCallback);
</script>
<li><a href="/services/<%= mashup %>?tryit"
title="?tryit">Try</a> the service</li>
- <li>Read <a href="/services/<%= mashup %>?doc"
title="?doc">API documentation</a></li>
- <li>View the <a href="/services/<%= mashup
%>?source&content-type=text/plain" title="?source">source code</a></li>
+ <li>Read <a href="/services/<%= mashup %>?doc"
title="?doc">API documentation</a>
+ </li>
+ <li>View the <a href="/services/<%= mashup
%>?source&content-type=text/plain"
+ title="?source">source code</a></li>
</ul>
</div>
@@ -388,7 +391,8 @@
<tr>
<td onload="makedatefriendly(this)"><%=
c[i].getCommentedTime() %>
</td>
- <td><a href="user.jsp?name=<%=c[i].getCommentedUser()%>"><%=
RegistryUtils.getFullName(request, c[i].getCommentedUser()) %>
+ <td><a href="user.jsp?name=<%=c[i].getCommentedUser()%>"><%=
RegistryUtils
+ .getFullName(request, c[i].getCommentedUser()) %>
</a></td>
<td><%= c[i].getCommentText() %>
</td>
@@ -425,6 +429,8 @@
<tr>
<th>Tasks</th>
</tr>
+ <!--Tasks will be available only to logged in users-->
+ <% if (RegistryUtils.isLoggedIn(registry)) { %>
<tr>
<td>
<ul>
@@ -449,6 +455,11 @@
<div>*** only viewing your own page.</div>
</td>
</tr>
+ <%}else{%>
+ <tr>
+ <td><a
href="signin.jsp?bounceback=mashup.jsp%3Fpath%3D%2Fmashups%2FyahooGeoCode">Sign
in</a> to perform tasks</td>
+ </tr>
+ <%}%>
</table>
<%@ include file="taskbar.jsp" %>
</td>
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev