Commit c4023ad9 authored by Matija Obreza's avatar Matija Obreza

Fixed download, map buttons in explorer

parent ffe9b040
......@@ -17,16 +17,11 @@
<div class="results">
<spring:message code="accessions.number" arguments="${pagedData.totalElements}" />
</div>
<div class="pagination">
<spring:message code="paged.pageOfPages" arguments="${pagedData.number+1},${pagedData.totalPages}" />
<a href="<spring:url value=""><spring:param name="page" value="${pagedData.number eq 0 ? 1 : pagedData.number}" /><spring:param name="filter" value="${jsonFilter}" /></spring:url>"><spring:message code="pagination.previous-page" /></a>
<a href="<spring:url value=""><spring:param name="page" value="${pagedData.number+2}" /><spring:param name="filter" value="${jsonFilter}" /></spring:url>"><spring:message code="pagination.next-page" /></a>
</div>
<div class="pull-right">
<a class="btn btn-default" href="<c:url value="/explore/map"><c:param name="crop" value="${crop.shortName}" /><c:param name="filter">${jsonFilter}</c:param></c:url>"><span class="glyphicon glyphicon-globe"></span><span style="margin-left: 0.5em;"><spring:message code="maps.view-map" /></span></a>
<c:if test="${pagedData.totalElements le 100000}">
<form class="form-horizontal pull-left" method="post" action="/explore/dwca">
<form style="display: inline-block" method="post" action="/explore/dwca">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<input type="hidden" name="crop" value="${crop.shortName}" />
<input type="hidden" name="filter" value="<c:out value="${jsonFilter}" />" />
......@@ -34,6 +29,11 @@
</form>
</c:if>
</div>
<div class="pagination">
<spring:message code="paged.pageOfPages" arguments="${pagedData.number+1},${pagedData.totalPages}" />
<a href="<spring:url value=""><spring:param name="page" value="${pagedData.number eq 0 ? 1 : pagedData.number}" /><spring:param name="filter" value="${jsonFilter}" /></spring:url>"><spring:message code="pagination.previous-page" /></a>
<a href="<spring:url value=""><spring:param name="page" value="${pagedData.number+2}" /><spring:param name="filter" value="${jsonFilter}" /></spring:url>"><spring:message code="pagination.next-page" /></a>
</div>
</div>
</div>
......
......@@ -15,7 +15,7 @@
<div class="nav-header">
<div class="pull-right">
<a class="btn btn-default" href="<c:url value="/explore" />" id="selectArea"><spring:message code="view.accessions" /></a>
<form class="form-horizontal pull-right" method="post" action="/explore/kml">
<form style="display: inline-block" method="post" action="/explore/kml">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<input type="hidden" name="crop" value="${crop.shortName}" />
<input type="hidden" name="filter" value="<c:out value="${jsonFilter}" />" />
......
......@@ -1131,13 +1131,12 @@ html[dir="rtl"] #stats .stat-lists ol li img {
.main-col-header .nav-header .results {
color:#6f6e69;
margin:0 0 10px 0;
}
.main-col .pagination {
font-size:18px;
font-weight:bold;
margin:0;
margin: 10px 0 5px;
}
.main-col .pagination.on-bottom {
......
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