summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/ProjectPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-06-19 16:26:32 -0400
committerJames Moger <james.moger@gitblit.com>2013-06-19 16:26:58 -0400
commit430496317177893eeb94579b2946dbafea6d0727 (patch)
tree85a37b386d1d144d51e2644d302ec00b7f691583 /src/main/java/com/gitblit/wicket/pages/ProjectPage.java
parentbdfb4cbb8175c09beaf77c7270d36403b127a0de (diff)
downloadgitblit-430496317177893eeb94579b2946dbafea6d0727.tar.gz
gitblit-430496317177893eeb94579b2946dbafea6d0727.zip
Generate filterable project/repository list with FreeMarker
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/ProjectPage.java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/ProjectPage.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/ProjectPage.java b/src/main/java/com/gitblit/wicket/pages/ProjectPage.java
index b101b400..bfc8493c 100644
--- a/src/main/java/com/gitblit/wicket/pages/ProjectPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/ProjectPage.java
@@ -24,7 +24,6 @@ import org.apache.wicket.Component;
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.ExternalLink;
-import org.apache.wicket.markup.html.panel.Fragment;
import com.gitblit.GitBlit;
import com.gitblit.Keys;
@@ -41,6 +40,7 @@ import com.gitblit.wicket.PageRegistration;
import com.gitblit.wicket.PageRegistration.DropDownMenuItem;
import com.gitblit.wicket.PageRegistration.DropDownMenuRegistration;
import com.gitblit.wicket.WicketUtils;
+import com.gitblit.wicket.panels.FilterableRepositoryList;
public class ProjectPage extends DashboardPage {
@@ -128,8 +128,9 @@ public class ProjectPage extends DashboardPage {
if (repositories.isEmpty()) {
add(new Label("repositoryList").setVisible(false));
} else {
- Fragment activeView = createNgList("repositoryList", "repositoryListFragment", "repositoryListCtrl", repositories);
- add(activeView);
+ FilterableRepositoryList repoList = new FilterableRepositoryList("repositoryList", repositories);
+ repoList.setAllowCreate(user.canCreate(project.name + "/"));
+ add(repoList);
}
}