<%@ include file="/common/taglibs.jsp" %>
<%-- Put constants into request scope --%>
<appfuse:constants scope="request"/>
<ul style="">
    <c:if test="${!empty pageContext.request.remoteUser}">
        <li class="actProfile"><a href="${ctx}/profile"><fmt:message key="menu.profile"/></a></li>
        <li class="actLogout">
            <form id="logout_form" action="${ctx}/logout.jsp">
                <input type="submit" value="<fmt:message key="menu.logout"/>"/>
            </form>
        </li>
    </c:if>
    <c:if test="${empty pageContext.request.remoteUser && !fn:contains(pageContext.request.requestURI,'pagenotfound') && !fn:contains(pageContext.request.requestURI,'setup/do') && !fn:contains(pageContext.request.requestURI,'accessdenied')}">
        <s:if test="%{currentUser == null}">
            <li class="actLogin">
                <a href="${ctx}/login/"><fmt:message key="menu.login"/></a>
            </li>
        </s:if>
    </c:if>
    <li class="actHelp"><a href="http://help.hedgehoglab.com" target="_blank"><fmt:message key="menu.help"/></a></li>
</ul>

<h1>
	<span class="productInfo">
		<a href="${ctx}/">
			<span class="productTitle">
				<fmt:message key="webapp.name"/>
			</span>
        </a>
		<span class="productDescription">
		<c:set var="actionBasedAppname"><s:property value="actionBasedAppname"/></c:set>
			<c:choose>
                <c:when test="${fn:length(actionBasedAppname) > 0}">
                    ${fn:escapeXml(actionBasedAppname)}
                </c:when>
                <c:otherwise>
                    <fmt:message key="webapp.name"/>
                </c:otherwise>
            </c:choose>
		</span>
	</span>
</h1>

