Show created/updated by for tasks
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-10-25 12:25:08 +01:00
parent 471301d1a7
commit d9fe433619
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 22 additions and 2 deletions

View File

@ -185,6 +185,12 @@
justify-content: left;
}
}
.created {
font-size: .75rem;
color: $grey;
text-align: right;
}
}
.task-view-container {

View File

@ -343,10 +343,18 @@
<span class="icon is-small"><icon icon="trash-alt"/></span>
Delete task
</a>
<!-- Created / Updated [by] -->
<p class="created">
Created <span v-tooltip="formatDate(task.created)">{{ formatDateSince(task.created) }}</span> by {{ task.createdBy.username }}
<template v-if="+new Date(task.created) !== +new Date(task.updated)">
<br/>
<!-- Computed properties to show the actual date every time it gets updated -->
Updated <span v-tooltip="updatedFormatted">{{ updatedSince }}</span>
</template>
</p>
</div>
</div>
<!-- Created / Updated [by] -->
</div>
<modal
@ -497,6 +505,12 @@ export default {
canWrite() {
return this.task && this.task.maxRight && this.task.maxRight > rights.READ
},
updatedSince() {
return this.formatDateSince(this.task.updated)
},
updatedFormatted() {
return this.formatDate(this.task.updated)
},
},
methods: {
loadTask() {