diff options
author | Jose <jose.vazquez.dev@gmail.com> | 2019-01-31 11:22:29 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-01-31 11:22:29 +0300 |
commit | 2375f7ff6859cdf50ee093074de9b8a9b8982c4a (patch) | |
tree | d8c5f776c12afecef3a3242c11e9d016e05371ed /app/assets/javascripts/ide/components/ide_status_bar.vue | |
parent | dd1348bd90d57b4a68280aed0716d22848ede77e (diff) |
Resolve "Add Avatar from author of the last commit to WebIDE status bar"
Diffstat (limited to 'app/assets/javascripts/ide/components/ide_status_bar.vue')
-rw-r--r-- | app/assets/javascripts/ide/components/ide_status_bar.vue | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/components/ide_status_bar.vue b/app/assets/javascripts/ide/components/ide_status_bar.vue index f1d40586903..ce577ae85b0 100644 --- a/app/assets/javascripts/ide/components/ide_status_bar.vue +++ b/app/assets/javascripts/ide/components/ide_status_bar.vue @@ -107,16 +107,23 @@ export default { class="commit-sha" >{{ lastCommit.short_id }}</a > - by {{ lastCommit.author_name }} + by + <user-avatar-image + css-classes="ide-status-avatar" + :size="18" + :img-src="latestPipeline && latestPipeline.commit.author_gravatar_url" + :img-alt="lastCommit.author_name" + :tooltip-text="lastCommit.author_name" + /> + {{ lastCommit.author_name }} <time v-tooltip :datetime="lastCommit.committed_date" :title="tooltipTitle(lastCommit.committed_date)" data-placement="top" data-container="body" + >{{ lastCommitFormatedAge }}</time > - {{ lastCommitFormatedAge }} - </time> </div> <div v-if="file" class="ide-status-file">{{ file.name }}</div> <div v-if="file" class="ide-status-file">{{ file.eol }}</div> |