Revision 5788
Added by ben leinfelder almost 14 years ago
index.jsp | ||
---|---|---|
1 | 1 |
<%@ page language="java"%> |
2 |
<%@page import="edu.ucsb.nceas.metacat.util.AuthUtil"%> |
|
2 | 3 |
<% |
3 | 4 |
/** |
4 | 5 |
* |
... | ... | |
633 | 634 |
<tr> |
634 | 635 |
<th> |
635 | 636 |
<p> |
636 |
Cart |
|
637 |
<!-- <input type="button" value="Refresh" onclick="loadCart()"/> --> |
|
638 |
<input type="button" value="Remove all" onclick="clearCart(); loadCart()"/> |
|
637 |
Cart |
|
638 |
<% |
|
639 |
boolean loggedIn = AuthUtil.isUserLoggedIn(request); |
|
640 |
if (loggedIn) { |
|
641 |
%> |
|
642 |
<!-- <input type="button" value="Refresh" onclick="loadCart()"/> --> |
|
643 |
<input type="button" value="Remove all" onclick="clearCart(); loadCart()"/> |
|
644 |
<% |
|
645 |
} else { |
|
646 |
%> |
|
647 |
(<a target="_top" href="<%=STYLE_SKINS_URL%>/semtools/login.jsp">Login</a> to edit cart) |
|
648 |
<% |
|
649 |
} |
|
650 |
%> |
|
639 | 651 |
</p> |
640 | 652 |
</th> |
641 | 653 |
</tr> |
Also available in: Unified diff
add login/logout page and links - only logged in users can use the data cart