summaryrefslogtreecommitdiffstats
path: root/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html
diff options
context:
space:
mode:
Diffstat (limited to 'polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html')
-rw-r--r--polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html32
1 files changed, 30 insertions, 2 deletions
diff --git a/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html b/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html
index 55164e0b1f..f534771228 100644
--- a/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html
+++ b/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.html
@@ -1,4 +1,5 @@
<!--
+@license
Copyright (C) 2016 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +17,7 @@ limitations under the License.
<link rel="import" href="../../../bower_components/polymer/polymer.html">
+<link rel="import" href="../../shared/gr-avatar/gr-avatar.html">
<link rel="import" href="../../shared/gr-date-formatter/gr-date-formatter.html">
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
@@ -25,10 +27,35 @@ limitations under the License.
<dom-module id="gr-account-info">
<template>
- <style include="shared-styles"></style>
+ <style include="shared-styles">
+ gr-avatar {
+ height: 120px;
+ width: 120px;
+ margin-right: .15em;
+ vertical-align: -.25em;
+ }
+ .hide {
+ display: none;
+ }
+ </style>
<style include="gr-form-styles"></style>
<div class="gr-form-styles">
<section>
+ <span class="title"></span>
+ <span class="value">
+ <gr-avatar account="[[_account]]"
+ image-size="120"></gr-avatar>
+ </span>
+ </section>
+ <section class$="[[_hideAvatarChangeUrl(_avatarChangeUrl)]]">
+ <span class="title"></span>
+ <span class="value">
+ <a href$="[[_avatarChangeUrl]]">
+ Change avatar
+ </a>
+ </span>
+ </section>
+ <section>
<span class="title">ID</span>
<span class="value">[[_account._account_id]]</span>
</section>
@@ -58,6 +85,7 @@ limitations under the License.
disabled="[[_saving]]"
on-keydown="_handleKeydown"
bind-value="{{_username}}">
+ </span>
</section>
<section id="nameSection">
<span class="title">Full name</span>
@@ -76,7 +104,7 @@ limitations under the License.
</span>
</section>
<section>
- <span class="title">Status</span>
+ <span class="title">Status (e.g. "Vacation")</span>
<span class="value">
<input
is="iron-input"