James Moger
2012-10-03 a03ecee4acc03411c90170dd704d9f87c82616ed
src/com/gitblit/client/EditRepositoryDialog.java
@@ -106,6 +106,8 @@
   
   private JRadioButton allowNamed;
   private JCheckBox allowForks;
   private JComboBox federationStrategy;
   private JComboBox ownerField;
@@ -229,6 +231,8 @@
      authorizationPanel.add(allowAuthenticated);
      authorizationPanel.add(allowNamed);
      allowForks = new JCheckBox(Translation.get("gb.allowForks"), anRepository.allowForks);
      // federation strategies - remove ORIGIN choice if this repository has
      // no origin.
      List<FederationStrategy> federationStrategies = new ArrayList<FederationStrategy>(
@@ -262,10 +266,14 @@
                  skipSizeCalculation));
      fieldsPanel.add(newFieldPanel(Translation.get("gb.skipSummaryMetrics"),
            skipSummaryMetrics));
      fieldsPanel
            .add(newFieldPanel(Translation.get("gb.isFrozen"), isFrozen));
      fieldsPanel.add(newFieldPanel(Translation.get("gb.mailingLists"),
            mailingListsField));
      JPanel clonePushPanel = new JPanel(new GridLayout(0, 1));
      clonePushPanel
      .add(newFieldPanel(Translation.get("gb.isFrozen"), isFrozen));
      clonePushPanel
      .add(newFieldPanel(Translation.get("gb.allowForks"), allowForks));
      usersPalette = new JPalette<String>();
      JPanel northAccessPanel = new JPanel(new BorderLayout(5, 5));
@@ -273,6 +281,7 @@
            accessRestriction), BorderLayout.NORTH);
      northAccessPanel.add(newFieldPanel(Translation.get("gb.authorizationControl"),
            authorizationPanel), BorderLayout.CENTER);
      northAccessPanel.add(clonePushPanel, BorderLayout.SOUTH);
      JPanel accessPanel = new JPanel(new BorderLayout(5, 5));
      accessPanel.add(northAccessPanel, BorderLayout.NORTH);
@@ -472,7 +481,9 @@
      repository.showReadme = showReadme.isSelected();
      repository.skipSizeCalculation = skipSizeCalculation.isSelected();
      repository.skipSummaryMetrics = skipSummaryMetrics.isSelected();
      repository.isFrozen = isFrozen.isSelected();
      repository.allowForks = allowForks.isSelected();
      String ml = mailingListsField.getText();
      if (!StringUtils.isEmpty(ml)) {