From: James Moger Date: Tue, 3 Jun 2014 19:09:28 +0000 (-0400) Subject: Hide gitignore selection if there are no gitignore resources X-Git-Tag: v1.6.0~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60676ffcfd63f24c81b12740627e472118c19a2b;p=gitblit.git Hide gitignore selection if there are no gitignore resources --- diff --git a/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java index bc2c68cc..0134677e 100644 --- a/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java @@ -207,7 +207,7 @@ public class NewRepositoryPage extends RootSubPage { getString("gb.initWithGitignoreDescription"), addGitignoreModel, gitignoreModel, - gitignores)); + gitignores).setVisible(gitignores.size() > 0)); // TODO consider gitflow at creation (ticket-55) addGitflowModel = Model.of(false);