Commit b20299f38380483b7979b50fb688cf83bdf5e73e
Don't show "Create Pull Request" button in public mode
Charles Lehner committed on 7/21/2016, 10:37:02 PMParent: 0b0753593eee0bace2669f35bab7cdc182cf203a
Files changed
lib/repos/pulls.js | changed |
lib/repos/pulls.js | |||
---|---|---|---|
@@ -363,8 +363,9 @@ | |||
363 | 363 … | forms.post(req, repo, req._t('Description'), 8) + | |
364 | 364 … | '<button type="submit" class="btn open">' + | |
365 | 365 … | req._t('Create') + '</button>' + | |
366 | 366 … | '</form></section>' | |
367 … | + : self.web.isPublic ? '' | ||
367 | 368 … | : '<section><form method="get" action="">' + | |
368 | 369 … | u.hiddenInputs({ | |
369 | 370 … | base: baseBranch, | |
370 | 371 … | head: query.head |
Built with git-ssb-web