NIHVIVO-173 Followed Brian's pattern to hide "Contact Us" link in footer (footer.jsp) if smtpHost is not set in deploy.properties. Tweaked identity.jsp, making anchor class conditional as well

This commit is contained in:
nac26 2010-04-02 23:17:48 +00:00
parent f64d355b11
commit d5aa4cfc25
2 changed files with 6 additions and 3 deletions

View file

@ -12,7 +12,7 @@
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%/* this odd thing points to something in web.xml */ %>
<jsp:useBean id="loginHandler" class="edu.cornell.mannlib.vedit.beans.LoginFormBean" scope="session" />
<%@page import="edu.cornell.mannlib.vitro.webapp.controller.ContactMailServlet"%><jsp:useBean id="loginHandler" class="edu.cornell.mannlib.vedit.beans.LoginFormBean" scope="session" />
<%
/**
* @version 1.00
@ -48,6 +48,7 @@
</c:set>
<c:set var='themeDir'><c:out value='${themePath}' default='/themes/vivo-basic/' /></c:set>
<c:set var="currentPortal" value="<%=portal.getPortalId()%>"/>
<c:set var="contactMailSetup" value="<%= ContactMailServlet.getSmtpHostFromProperties() != null %>"/>
<div id='footer'>
@ -73,7 +74,9 @@
<c:set var="contactHref">
<c:out value="${contactHref}" escapeXml="true"/>
</c:set>
<c:if test="${contactMailSetup}">
<li class="last"><a href="${contactHref}" title="feedback form">Contact Us</a></li>
</c:if>
</ul>
</div>

View file

@ -130,7 +130,7 @@ portal.getRootBreadCrumbURL() : request.getContextPath()+"/";
<c:out value="${aboutHref}" escapeXml="true"/>
</c:set>
<li class="border"><a href="${aboutHref}" title="more about this web site">About</a></li>
<li<c:if test="${contactMailSetup}"> class="border"</c:if>><a href="${aboutHref}" title="more about this web site">About</a></li>
<c:if test="${contactMailSetup}" >
<li><a href='<c:url value="/comments"><c:param name="home" value="${currentPortal}"/></c:url>'>Contact Us</a></li>