summaryrefslogtreecommitdiff
path: root/app/views/sherlock
diff options
context:
space:
mode:
authorTakuya Noguchi <takninnovationresearch@gmail.com>2018-04-26 00:58:56 +0900
committerTakuya Noguchi <takninnovationresearch@gmail.com>2018-04-27 08:35:45 +0900
commitebcd5711c5ff937bf925002bf9a5b636b037684e (patch)
treeaf6ef8618e3e57dd3e03501e82647488c78a0ed1 /app/views/sherlock
parentc5f6c811eec6bca7952f84af9e30f3fafb848352 (diff)
downloadgitlab-ce-ebcd5711c5ff937bf925002bf9a5b636b037684e.tar.gz
Replace time_ago_in_words with JS-based one
Diffstat (limited to 'app/views/sherlock')
-rw-r--r--app/views/sherlock/transactions/_general.html.haml3
-rw-r--r--app/views/sherlock/transactions/index.html.haml3
2 files changed, 2 insertions, 4 deletions
diff --git a/app/views/sherlock/transactions/_general.html.haml b/app/views/sherlock/transactions/_general.html.haml
index 8533b130da6..a37fb5d449a 100644
--- a/app/views/sherlock/transactions/_general.html.haml
+++ b/app/views/sherlock/transactions/_general.html.haml
@@ -35,5 +35,4 @@
%span.light
#{t('sherlock.finished_at')}:
%strong
- = time_ago_in_words(@transaction.finished_at)
- = t('sherlock.ago')
+ = time_ago_with_tooltip @transaction.finished_at
diff --git a/app/views/sherlock/transactions/index.html.haml b/app/views/sherlock/transactions/index.html.haml
index bc05659dfa8..6ed7e9e21a6 100644
--- a/app/views/sherlock/transactions/index.html.haml
+++ b/app/views/sherlock/transactions/index.html.haml
@@ -35,8 +35,7 @@
= t('sherlock.seconds')
%td= trans.queries.length
%td
- = time_ago_in_words(trans.finished_at)
- = t('sherlock.ago')
+ = time_ago_with_tooltip trans.finished_at
%td
= link_to(sherlock_transaction_path(trans), class: 'btn btn-xs') do
= t('sherlock.view')