mirror of https://github.com/apache/archiva.git
[MRM-1108] show the default logo if it is empty in the configuration
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@750843 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e03d296ed
commit
adf0f01d13
|
@ -40,29 +40,30 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h3>Organization Information</h3>
|
<h3>Organization Information</h3>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<td>${organisationName}</td>
|
<td>${organisationName}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>URL</th>
|
<th>URL</th>
|
||||||
<td><a href="${organisationUrl}">
|
<td><a href="${organisationUrl}">
|
||||||
<code>${organisationUrl}</code>
|
<code>${organisationUrl}</code>
|
||||||
</a></td>
|
</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Logo URL</th>
|
<th>Logo URL</th>
|
||||||
<td>
|
<td>
|
||||||
<code>${organisationLogo}</code>
|
<code>${organisationLogo}</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<c:if test="${!empty (organisationLogo)}">
|
||||||
<th> </th>
|
<tr>
|
||||||
<td>
|
<th> </th>
|
||||||
<img src="${organisationLogo}" title="${organisationName}" border="0" alt=""/>
|
<td><img src="${organisationLogo}"
|
||||||
</td>
|
title="${organisationName}" border="0" alt="" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</c:if>
|
||||||
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -22,9 +22,10 @@
|
||||||
<%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
|
<%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
|
||||||
|
|
||||||
<div id="companyLogo">
|
<div id="companyLogo">
|
||||||
<s:if test="%{organisationLogo != null}">
|
<s:set name="organisationLogo" value="organisationLogo"/>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${!empty (organisationLogo)}">
|
||||||
<s:set name="organisationUrl" value="organisationUrl"/>
|
<s:set name="organisationUrl" value="organisationUrl"/>
|
||||||
<s:set name="organisationLogo" value="organisationLogo"/>
|
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${!empty (organisationUrl)}">
|
<c:when test="${!empty (organisationUrl)}">
|
||||||
<a href="${organisationUrl}">
|
<a href="${organisationUrl}">
|
||||||
|
@ -35,10 +36,11 @@
|
||||||
<img src="${organisationLogo}" title="${organisationName}"/>
|
<img src="${organisationLogo}" title="${organisationName}"/>
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</s:if>
|
</c:when>
|
||||||
<s:else>
|
<c:otherwise>
|
||||||
<my:currentWWUrl action="index" namespace="/">
|
<my:currentWWUrl action="index" namespace="/">
|
||||||
<img src="<c:url value='/images/archiva.png' />"/>
|
<img src="<c:url value='/images/archiva.png' />"/>
|
||||||
</my:currentWWUrl>
|
</my:currentWWUrl>
|
||||||
</s:else>
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue