+ <c:set var="csv" value="\'Job ID\', \'Date\', \'Sequence\'"/>
+ <c:forEach items="${results.mainInfo}" var="res" varStatus="status">
+ <c:set var="csv" value="${csv}%0A'${res.key}"/>
+ <c:forEach items="${res.value}" var="info" varStatus="status">
+ <c:if test="${status.first}">
+ <c:set var="csv" value="${csv}\',\'${info}"/>
+ </c:if>
+ <c:if test="${!status.first}">
+ <c:choose>
+ <c:when test="${info==''}">
+ <c:set var="csv" value="${csv}\',\'Alignment job"/>
+ </c:when>
+ <c:otherwise>
+ <c:set var="csv" value="${csv}\',\'${info}"/>
+ </c:otherwise>
+ </c:choose>
+ </c:if>
+ </c:forEach>
+ <c:set var="csv" value="${csv}\'"/>
+ </c:forEach>
+
+ <!-- reload and CSV buttons -->
+ <ul class="nav navbar-nav navbar-right">
+ <li>
+ <a href="${the_query}" class="btn btn-default active">Reload</a>
+ </li>
+ <li>
+ <a id="forCSVfile" download="data.csv" href="data:application/csv;charset=utf-8,${csv}" class="btn btn-default active">CSV</a>
+ </li>
+ </ul>
+
+