Commit 1364c8eb authored by Matija Obreza's avatar Matija Obreza

Exclude lists when empty

parent 1355c915
......@@ -30,23 +30,25 @@
<%@include file="/WEB-INF/jsp/content/include/blurp-display.jsp"%>
</c:if>
<div class="content-section-2015">
<h3>
<span>
<spring:message code="project.accessionLists" />
</span>
</h3>
<div class="row">
<div class="col-md-offset-2 col-md-10">
<ul>
<c:forEach items="${accessionLists}" var="accessionList">
<li>
<a href="<c:url value="/explore"><c:param name="filter" value='{"lists":["${accessionList.uuid}"]}' /></c:url>"><c:out value="${accessionList.title}" /></a>
</li>
</c:forEach>
</ul>
<c:if test="${fn:length(accessionLists) gt 0}">
<div class="content-section-2015">
<h3>
<span>
<spring:message code="project.accessionLists" />
</span>
</h3>
<div class="row">
<div class="col-md-offset-2 col-md-10">
<ul>
<c:forEach items="${accessionLists}" var="accessionList">
<li>
<a href="<c:url value="/explore"><c:param name="filter" value='{"lists":["${accessionList.uuid}"]}' /></c:url>"><c:out value="${accessionList.title}" /></a>
</li>
</c:forEach>
</ul>
</div>
</div>
</div>
</div>
</c:if>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment