fix: related tasks add button and task dates in read only view #1268
|
@ -1,21 +1,27 @@
|
||||||
<template>
|
<template>
|
||||||
<p class="created">
|
<p class="created">
|
||||||
<i18n-t keypath="task.detail.created">
|
<time :datetime="formatISO(task.created)" v-tooltip="formatDate(task.created)">
|
||||||
<span v-tooltip="formatDate(task.created)">{{ formatDateSince(task.created) }}</span>
|
<i18n-t keypath="task.detail.created">
|
||||||
{{ task.createdBy.getDisplayName() }}
|
<span>{{ formatDateSince(task.created) }}</span>
|
||||||
</i18n-t>
|
{{ task.createdBy.getDisplayName() }}
|
||||||
|
</i18n-t>
|
||||||
|
</time>
|
||||||
<template v-if="+new Date(task.created) !== +new Date(task.updated)">
|
<template v-if="+new Date(task.created) !== +new Date(task.updated)">
|
||||||
<br/>
|
<br/>
|
||||||
<!-- Computed properties to show the actual date every time it gets updated -->
|
<!-- Computed properties to show the actual date every time it gets updated -->
|
||||||
<i18n-t keypath="task.detail.updated">
|
<time :datetime="formatISO(task.updated)" v-tooltip="updatedFormatted">
|
||||||
<span v-tooltip="updatedFormatted">{{ updatedSince }}</span>
|
<i18n-t keypath="task.detail.updated">
|
||||||
</i18n-t>
|
<span>{{ updatedSince }}</span>
|
||||||
|
</i18n-t>
|
||||||
|
</time>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="task.done">
|
<template v-if="task.done">
|
||||||
<br/>
|
<br/>
|
||||||
<i18n-t keypath="task.detail.doneAt">
|
<time :datetime="formatISO(task.doneAt)" v-tooltip="doneFormatted">
|
||||||
<span v-tooltip="doneFormatted">{{ doneSince }}</span>
|
<i18n-t keypath="task.detail.doneAt">
|
||||||
</i18n-t>
|
<span>{{ doneSince }}</span>
|
||||||
|
</i18n-t>
|
||||||
|
</time>
|
||||||
</template>
|
</template>
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
Reference in New Issue
Block a user