Merge "Add CHANGE_SCREEN_BELOW_COMMIT_INFO_BLOCK extension point"

This commit is contained in:
Edwin Kempin
2016-07-29 14:51:31 +00:00
committed by Gerrit Code Review
4 changed files with 14 additions and 0 deletions

View File

@@ -1094,6 +1094,10 @@ Panel will be shown in the header bar on the right side of the buttons.
Panel will be shown in the header bar on the right side of the pop down
buttons.
** `GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_COMMIT_INFO_BLOCK`:
+
Panel will be shown below the commit info block.
** `GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK`:
+
Panel will be shown below the change info block.

View File

@@ -21,6 +21,7 @@ public enum GerritUiExtensionPoint {
CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS,
CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK,
CHANGE_SCREEN_BELOW_RELATED_INFO_BLOCK,
CHANGE_SCREEN_BELOW_COMMIT_INFO_BLOCK,
/* MyPasswordScreen */
PASSWORD_SCREEN_BOTTOM,

View File

@@ -190,6 +190,7 @@ public class ChangeScreen extends Screen {
@UiField Element actionDate;
@UiField SimplePanel changeExtension;
@UiField SimplePanel relatedExtension;
@UiField SimplePanel commitExtension;
@UiField Actions actions;
@UiField Labels labels;
@@ -337,6 +338,9 @@ public class ChangeScreen extends Screen {
addExtensionPoint(
GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_RELATED_INFO_BLOCK,
relatedExtension, change, rev);
addExtensionPoint(
GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_COMMIT_INFO_BLOCK,
commitExtension, change, rev);
}
private void addExtensionPoint(GerritUiExtensionPoint extensionPoint,

View File

@@ -351,6 +351,10 @@ limitations under the License.
padding-top: 5px;
}
.commitExtension {
padding-top: 5px;
}
.pushCertStatus {
padding-left: 5px;
}
@@ -434,6 +438,7 @@ limitations under the License.
<tr>
<td class='{style.commitColumn}'>
<c:CommitBox ui:field='commit'/>
<g:SimplePanel ui:field='commitExtension' styleName='{style.commitExtension}'/>
</td>
<td class='{style.infoColumn}'>
<table id='change_infoTable'>