blob: f3beda1ce10d184eff1913fd066114dcb9049949 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<ui:UiBinder
xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:c='urn:import:com.google.gerrit.client'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<ui:with field='res' type='com.google.gerrit.client.diff.Resources'/>
<ui:style type='com.google.gerrit.client.diff.PublishedBox.Style'>
.avatar {
position: absolute;
width: 26px;
height: 26px;
}
.closed .avatar {
position: absolute;
width: 16px;
height: 16px;
}
.name {
white-space: nowrap;
font-weight: bold;
}
.closed .name {
width: 120px;
overflow: hidden;
text-overflow: ellipsis;
font-weight: normal;
}
</ui:style>
<g:HTMLPanel
styleName='{res.style.commentBox}'
addStyleNames='{style.closed}'>
<c:AvatarImage ui:field='avatar' styleName='{style.avatar}'/>
<div class='{res.style.contents}'>
<g:HTMLPanel ui:field='header' styleName='{res.style.header}'>
<div ui:field='name' class='{style.name}'/>
<div ui:field='summary' class='{res.style.summary}'/>
<div ui:field='date' class='{res.style.date}'/>
</g:HTMLPanel>
<div ui:field='message' aria-hidden='true' style='display: NONE'/>
<div ui:field='buttons' aria-hidden='true' style='display: NONE'>
<g:Button ui:field='reply' styleName=''
title='Reply to this comment'>
<ui:attribute name='title'/>
<div><ui:msg>Reply</ui:msg></div>
</g:Button>
<g:Button ui:field='done' styleName=''
title='Reply "Done" to this comment'>
<ui:attribute name='title'/>
<div><ui:msg>Done</ui:msg></div>
</g:Button>
</div>
</div>
</g:HTMLPanel>
</ui:UiBinder>