Commit c82d61d9 authored by Filipa Lacerda's avatar Filipa Lacerda

Optimize timeago tooltip logic

parent cf12c3d2
...@@ -32,24 +32,17 @@ export default { ...@@ -32,24 +32,17 @@ export default {
<div class="erased alert alert-warning"> <div class="erased alert alert-warning">
<template v-if="erasedByUser"> <template v-if="erasedByUser">
{{ s__("Job|Job has been erased by") }} {{ s__("Job|Job has been erased by") }}
<a :href="linkToUser">
<a
:href="linkToUser"
>
{{ username }} {{ username }}
</a> </a>
<timeago-tooltip
:time="erasedAt"
/>
</template> </template>
<template v-else> <template v-else>
{{ s__("Job|Job has been erased") }} {{ s__("Job|Job has been erased") }}
</template>
<timeago-tooltip <timeago-tooltip
:time="erasedAt" :time="erasedAt"
/> />
</template>
</div> </div>
</div> </div>
</template> </template>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment