Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Fixed a projectDAO query
Browse files Browse the repository at this point in the history
Merged with head
  • Loading branch information
Ale authored and Ale committed Apr 20, 2012
1 parent f4a45f1 commit ac0ba06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main/java/it/redoddity/portfolios/dao/ProjectDAO.java
Expand Up @@ -47,6 +47,7 @@ public List<Project> findAll() {
}
return null;
}


public List<Project> findUserProjects(User user) {
try {
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/WEB-INF/views/home/index.jsp
Expand Up @@ -2,7 +2,7 @@
<%@page import="java.util.List"%>
<%@page import="java.util.List"%>
<%@page import="it.redoddity.portfolios.model.Project"%>
<c:if test="${from gt projectsSize}">
<c:if test="${from gt projectsSize || from lt 0}">
<c:redirect url="?from=0" />
</c:if>
<!DOCTYPE html>
Expand Down Expand Up @@ -40,12 +40,12 @@
<c:if test="${projectsSize gt from+10}">

<li class="previous">
<a href="${root}/home/index?from=${from+10}">&larr; Older</a>
<a href="${root}/home/index?from=${from+(from+10)}">&larr; Older</a>
</li>
</c:if>
<c:if test="${from gt 9}">
<li class="next">
<a href="${root}/home/index?from=${from-10}">Newer &rarr;</a>
<a href="${root}/home/index?from=${from-(from+10)}">Newer &rarr;</a>
</li>
</c:if>
</ul>
Expand Down

0 comments on commit ac0ba06

Please sign in to comment.