Merge "Add CHANGE_SCREEN_BELOW_RELATED_INFO_BLOCK extension point"

This commit is contained in:
Edwin Kempin
2016-04-20 11:22:42 +00:00
committed by Gerrit Code Review
3 changed files with 10 additions and 0 deletions

View File

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

View File

@@ -189,6 +189,7 @@ public class ChangeScreen extends Screen {
@UiField Element actionText; @UiField Element actionText;
@UiField Element actionDate; @UiField Element actionDate;
@UiField SimplePanel changeExtension; @UiField SimplePanel changeExtension;
@UiField SimplePanel relatedExtension;
@UiField Actions actions; @UiField Actions actions;
@UiField Labels labels; @UiField Labels labels;
@@ -333,6 +334,9 @@ public class ChangeScreen extends Screen {
addExtensionPoint( addExtensionPoint(
GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK, GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK,
changeExtension, change, rev); changeExtension, change, rev);
addExtensionPoint(
GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_RELATED_INFO_BLOCK,
relatedExtension, change, rev);
} }
private void addExtensionPoint(GerritUiExtensionPoint extensionPoint, private void addExtensionPoint(GerritUiExtensionPoint extensionPoint,

View File

@@ -347,6 +347,10 @@ limitations under the License.
padding-top: 5px; padding-top: 5px;
} }
.relatedExtension {
padding-top: 5px;
}
.pushCertStatus { .pushCertStatus {
padding-left: 5px; padding-left: 5px;
} }
@@ -520,6 +524,7 @@ limitations under the License.
</td> </td>
<td class='{style.relatedColumn}'> <td class='{style.relatedColumn}'>
<c:RelatedChanges ui:field='related'/> <c:RelatedChanges ui:field='related'/>
<g:SimplePanel ui:field='relatedExtension' styleName='{style.relatedExtension}'/>
</td> </td>
</tr> </tr>
</table> </table>