| | |
| | | import org.apache.wicket.markup.html.form.RadioGroup;
|
| | | import org.apache.wicket.markup.html.list.ListItem;
|
| | | import org.apache.wicket.markup.html.list.ListView;
|
| | | import org.apache.wicket.markup.html.panel.Fragment;
|
| | | import org.apache.wicket.model.Model;
|
| | | import org.apache.wicket.model.PropertyModel;
|
| | |
|
| | | import com.gitblit.Constants.AccessRestrictionType;
|
| | | import com.gitblit.Constants.AuthorizationControl;
|
| | |
| | | }
|
| | | add(policiesGroup);
|
| | |
|
| | | if (app().settings().getBoolean(Keys.web.allowForking, true)) {
|
| | | Fragment fragment = new Fragment("allowForks", "allowForksFragment", this);
|
| | | fragment.add(new BooleanOption("allowForks",
|
| | | getString("gb.allowForks"),
|
| | | getString("gb.allowForksDescription"),
|
| | | new PropertyModel<Boolean>(repository, "allowForks")));
|
| | | add(fragment);
|
| | | } else {
|
| | | add(new Label("allowForks").setVisible(false));
|
| | | }
|
| | |
|
| | | setOutputMarkupId(true);
|
| | | }
|
| | |
|