diff options
Diffstat (limited to 'polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.html')
-rw-r--r-- | polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.html b/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.html index 43721fe6b0..21f4c3e10d 100644 --- a/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.html +++ b/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.html @@ -14,12 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. --> +<link rel="import" href="../../../behaviors/gr-anonymous-name-behavior/gr-anonymous-name-behavior.html"> +<link rel="import" href="../../../behaviors/gr-tooltip-behavior/gr-tooltip-behavior.html"> <link rel="import" href="../../../bower_components/polymer/polymer.html"> +<link rel="import" href="../../../styles/shared-styles.html"> <link rel="import" href="../gr-avatar/gr-avatar.html"> +<link rel="import" href="../gr-rest-api-interface/gr-rest-api-interface.html"> <dom-module id="gr-account-label"> <template> - <style> + <style include="shared-styles"> :host { display: inline; } @@ -32,15 +36,20 @@ limitations under the License. margin-right: .15em; vertical-align: -.25em; } + .text { + @apply(--gr-account-label-text-style); + } .text:hover { @apply(--gr-account-label-text-hover-style); } </style> - <span title$="[[_computeAccountTitle(account)]]"> - <gr-avatar account="[[account]]" - image-size="[[avatarImageSize]]"></gr-avatar> + <span> + <template is="dom-if" if="[[!hideAvatar]]"> + <gr-avatar account="[[account]]" + image-size="[[avatarImageSize]]"></gr-avatar> + </template> <span class="text"> - <span>[[account.name]]</span> + <span>[[_computeName(account, _serverConfig)]]</span> <span hidden$="[[!_computeShowEmail(showEmail, account)]]"> [[_computeEmailStr(account)]] </span> @@ -49,6 +58,7 @@ limitations under the License. </template> </span> </span> + <gr-rest-api-interface id="restAPI"></gr-rest-api-interface> </template> <script src="../../../scripts/util.js"></script> <script src="gr-account-label.js"></script> |