summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-08-13 16:52:42 +0100
committerFilipa Lacerda <filipa@gitlab.com>2018-08-13 16:52:42 +0100
commitc82d61d9bfabbc3829fec6640b6ba4485de73f36 (patch)
treedfcdf7ed1a6366039e727058dbdb32677ddfb470
parentcf12c3d2be9f244a4092ea4dd231e65dff8b295c (diff)
downloadgitlab-ce-c82d61d9bfabbc3829fec6640b6ba4485de73f36.tar.gz
Optimize timeago tooltip logic
-rw-r--r--app/assets/javascripts/jobs/components/erased_block.vue17
1 files changed, 5 insertions, 12 deletions
diff --git a/app/assets/javascripts/jobs/components/erased_block.vue b/app/assets/javascripts/jobs/components/erased_block.vue
index 2a6c9c49b2f..d688eebfa95 100644
--- a/app/assets/javascripts/jobs/components/erased_block.vue
+++ b/app/assets/javascripts/jobs/components/erased_block.vue
@@ -32,24 +32,17 @@ export default {
<div class="erased alert alert-warning">
<template v-if="erasedByUser">
{{ s__("Job|Job has been erased by") }}
-
- <a
- :href="linkToUser"
- >
+ <a :href="linkToUser">
{{ username }}
</a>
-
- <timeago-tooltip
- :time="erasedAt"
- />
-
</template>
<template v-else>
{{ s__("Job|Job has been erased") }}
- <timeago-tooltip
- :time="erasedAt"
- />
</template>
+
+ <timeago-tooltip
+ :time="erasedAt"
+ />
</div>
</div>
</template>