Commit ac5ea2e4 authored by Matija Obreza's avatar Matija Obreza

Link to Crops index page from homepage

parent 256c1ab8
......@@ -22,7 +22,7 @@
</div>
</c:if>
</div>
</div>
</div>
</div>
<div class="row no-space map">
......@@ -108,7 +108,7 @@
</div>
</div>
<!-- Block Help -->
<div class="col-md-4 col-sm-12 col-xs-12 no-space">
<div class="see-also-block">
......@@ -171,8 +171,8 @@
<cms:blurb blurb="${sideBlurp}"/>
</div>
</c:if>
<div class="content-block" id="crop-list">
<h2 class="short text-right pull-left">
<spring:message code="crop.croplist" />
......@@ -195,21 +195,21 @@
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<li class="all-crops">
<a class="show" href="<c:url value="/explore/" />">
<a class="show" href="<c:url value="/c/" />">
<spring:message code="crop.all-crops" />
</a>
</li>
<c:forEach items="${cropList}" var="crop" varStatus="status">
<li>
<a class="show" href="<c:url value="/c/${crop.shortName}" />">
<c:out value="${crop.getName(pageContext.response.locale)}" />
</a>
</li>
<c:if test="${status.count % Math.round(cropCount / 3) == 0}">
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
</c:if>
</c:forEach>
<c:forEach items="${cropList}" var="crop" varStatus="status">
<li>
<a class="show" href="<c:url value="/c/${crop.shortName}" />">
<c:out value="${crop.getName(pageContext.response.locale)}" />
</a>
</li>
<c:if test="${status.count % Math.round(cropCount / 3) == 0}">
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
</c:if>
</c:forEach>
</div>
</div>
</ul>
......@@ -218,8 +218,8 @@
</c:if>
</div>
</div>
<content tag="javascript">
<!-- Index Javascripts -->
<script type="text/javascript">
......@@ -233,8 +233,8 @@
$('#home-li').find("a").addClass('active active-group');
$('#home-li').addClass('active');
$(".autocomplete-genus").each(function() {
var t=$(this);
t.autocomplete({ delay: 200, minLength: 3, source: t.attr('x-source'),
var t=$(this);
t.autocomplete({ delay: 200, minLength: 3, source: t.attr('x-source'),
messages: { noResults: '', results: function() {} },
select: function(event, ui) { document.location.pathname='/acn/t/'+ui.item.value; } });
});
......@@ -243,4 +243,4 @@
</content>
</body>
</html>
\ No newline at end of file
</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