]> source.dussan.org Git - gitblit.git/commitdiff
Hide gitignore selection if there are no gitignore resources
authorJames Moger <james.moger@gitblit.com>
Tue, 3 Jun 2014 19:09:28 +0000 (15:09 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 3 Jun 2014 19:09:28 +0000 (15:09 -0400)
src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java

index bc2c68ccb6cbafd177828b449ada69bcaeabe7a1..0134677ed72eaf41711b9d25ad8c34a875b7f251 100644 (file)
@@ -207,7 +207,7 @@ public class NewRepositoryPage extends RootSubPage {
                                getString("gb.initWithGitignoreDescription"),\r
                                addGitignoreModel,\r
                                gitignoreModel,\r
-                               gitignores));\r
+                               gitignores).setVisible(gitignores.size() > 0));\r
 \r
                // TODO consider gitflow at creation (ticket-55)\r
                addGitflowModel = Model.of(false);\r