Merge "Display project's maxObjectSizeLimit in the UI"
This commit is contained in:
commit
cc3ca421aa
@ -42,6 +42,7 @@ public interface AdminConstants extends Constants {
|
||||
String useContributorAgreements();
|
||||
String useSignedOffBy();
|
||||
String requireChangeID();
|
||||
String headingMaxObjectSizeLimit();
|
||||
String headingGroupOptions();
|
||||
String isVisibleToAll();
|
||||
String buttonSaveGroupOptions();
|
||||
|
@ -24,6 +24,7 @@ useContentMerge = Automatically resolve conflicts
|
||||
useContributorAgreements = Require a valid contributor agreement to upload
|
||||
useSignedOffBy = Require <a href="http://gerrit-documentation.googlecode.com/svn/Documentation/2.5/user-signedoffby.html#Signed-off-by" target="_blank"><code>Signed-off-by</code></a> in commit message
|
||||
requireChangeID = Require <a href="http://gerrit-documentation.googlecode.com/svn/Documentation/2.5/user-changeid.html" target="_blank"><code>Change-Id</code></a> in commit message
|
||||
headingMaxObjectSizeLimit = Maximum Git object size limit
|
||||
headingGroupOptions = Group Options
|
||||
isVisibleToAll = Make group visible to all registered users.
|
||||
buttonSaveGroupOptions = Save Group Options
|
||||
|
@ -32,6 +32,7 @@ import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.event.dom.client.ClickHandler;
|
||||
import com.google.gwt.user.client.ui.Button;
|
||||
import com.google.gwt.user.client.ui.FlexTable;
|
||||
import com.google.gwt.user.client.ui.Label;
|
||||
import com.google.gwt.user.client.ui.ListBox;
|
||||
import com.google.gwt.user.client.ui.VerticalPanel;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
@ -48,6 +49,7 @@ public class ProjectInfoScreen extends ProjectScreen {
|
||||
private ListBox submitType;
|
||||
private ListBox state;
|
||||
private ListBox contentMerge;
|
||||
private Label maxObjectSizeLimit;
|
||||
|
||||
// Section: Contributor Agreements
|
||||
private ListBox contributorAgreements;
|
||||
@ -160,6 +162,9 @@ public class ProjectInfoScreen extends ProjectScreen {
|
||||
requireChangeID = newInheritedBooleanBox();
|
||||
saveEnabler.listenTo(requireChangeID);
|
||||
grid.addHtml(Util.C.requireChangeID(), requireChangeID);
|
||||
|
||||
maxObjectSizeLimit = new Label();
|
||||
grid.addHtml(Util.C.headingMaxObjectSizeLimit(), maxObjectSizeLimit);
|
||||
}
|
||||
|
||||
private static ListBox newInheritedBooleanBox() {
|
||||
@ -277,6 +282,7 @@ public class ProjectInfoScreen extends ProjectScreen {
|
||||
setBool(requireChangeID, result.requireChangeID);
|
||||
setSubmitType(project.getSubmitType());
|
||||
setState(project.getState());
|
||||
maxObjectSizeLimit.setText(project.getMaxObjectSizeLimit());
|
||||
|
||||
saveProject.setEnabled(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user