diff options
author | James Moger <james.moger@gitblit.com> | 2014-06-03 15:09:28 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-06-03 15:09:28 -0400 |
commit | 60676ffcfd63f24c81b12740627e472118c19a2b (patch) | |
tree | 68c2e7b4c607c41900a79e82d0ff949583c4f2e7 /src/main/java | |
parent | 2d291de884b4bb3164fda516ebc8510f757495b7 (diff) | |
download | gitblit-60676ffcfd63f24c81b12740627e472118c19a2b.tar.gz gitblit-60676ffcfd63f24c81b12740627e472118c19a2b.zip |
Hide gitignore selection if there are no gitignore resources
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|