private JRadioButton allowAuthenticated;\r
\r
private JRadioButton allowNamed;\r
+ \r
+ private JCheckBox allowForks;\r
\r
private JComboBox federationStrategy;\r
\r
JPanel authorizationPanel = new JPanel(new GridLayout(0, 1));\r
authorizationPanel.add(allowAuthenticated);\r
authorizationPanel.add(allowNamed);\r
+ \r
+ allowForks = new JCheckBox(Translation.get("gb.allowForks"), anRepository.allowForks);\r
\r
// federation strategies - remove ORIGIN choice if this repository has\r
// no origin.\r
skipSizeCalculation));\r
fieldsPanel.add(newFieldPanel(Translation.get("gb.skipSummaryMetrics"),\r
skipSummaryMetrics));\r
- fieldsPanel\r
- .add(newFieldPanel(Translation.get("gb.isFrozen"), isFrozen));\r
fieldsPanel.add(newFieldPanel(Translation.get("gb.mailingLists"),\r
mailingListsField));\r
\r
+ JPanel clonePushPanel = new JPanel(new GridLayout(0, 1));\r
+ clonePushPanel\r
+ .add(newFieldPanel(Translation.get("gb.isFrozen"), isFrozen));\r
+ clonePushPanel\r
+ .add(newFieldPanel(Translation.get("gb.allowForks"), allowForks));\r
+\r
usersPalette = new JPalette<String>();\r
JPanel northAccessPanel = new JPanel(new BorderLayout(5, 5));\r
northAccessPanel.add(newFieldPanel(Translation.get("gb.accessRestriction"),\r
accessRestriction), BorderLayout.NORTH);\r
northAccessPanel.add(newFieldPanel(Translation.get("gb.authorizationControl"),\r
authorizationPanel), BorderLayout.CENTER);\r
+ northAccessPanel.add(clonePushPanel, BorderLayout.SOUTH);\r
\r
JPanel accessPanel = new JPanel(new BorderLayout(5, 5));\r
accessPanel.add(northAccessPanel, BorderLayout.NORTH);\r
repository.showReadme = showReadme.isSelected();\r
repository.skipSizeCalculation = skipSizeCalculation.isSelected();\r
repository.skipSummaryMetrics = skipSummaryMetrics.isSelected();\r
+ \r
repository.isFrozen = isFrozen.isSelected();\r
+ repository.allowForks = allowForks.isSelected();\r
\r
String ml = mailingListsField.getText();\r
if (!StringUtils.isEmpty(ml)) {\r