1
0

Show avatars of assigned users

This commit is contained in:
kolaente
2019-06-06 12:52:05 +02:00
parent 0b18ca73c2
commit aeae2c4f1f
4 changed files with 16 additions and 1 deletions

View File

@ -38,6 +38,7 @@
<span class="tag" v-for="label in l.labels" :style="{'background': label.hex_color, 'color': label.textColor}" :key="label.id">
<span>{{ label.title }}</span>
</span>
<img :src="gravatar(a)" :alt="a.username" v-for="a in l.assignees" class="avatar" :key="l.id + 'assignee' + a.id"/>
<i v-if="l.dueDate > 0" :class="{'overdue': (l.dueDate <= new Date())}"> - Due on {{new Date(l.dueDate).toLocaleString()}}</i>
<span v-if="l.priority >= priorities.HIGH" class="high-priority" :class="{'not-so-high': l.priority === priorities.HIGH}">
<span class="icon">
@ -173,6 +174,9 @@
this.taskEditTask = theTask
this.isTaskEdit = true
},
gravatar(user) {
return 'https://www.gravatar.com/avatar/' + user.avatarUrl + '?s=27'
},
}
}
</script>