diff options
author | Alexander Kutelev <alexander@kutelev.ru> | 2019-01-04 08:54:45 +0300 |
---|---|---|
committer | Alexander Kutelev <alexander.kutelev@neulion.com> | 2019-01-04 09:24:42 +0300 |
commit | bcaf444b2107408b1eaf66bfc0d869b7b87b35f9 (patch) | |
tree | 3af6bf54ea79b85bd5d6846e03abcecfe60c7352 /app/views/admin | |
parent | d56124b5e16e15afd830a1bdc8c34a4a57d898d8 (diff) |
Take contacted_at value from the DB when it is about to be displayed in the Web interface with sorting enabled.
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/runners/_runner.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/admin/runners/_runner.html.haml b/app/views/admin/runners/_runner.html.haml index e4fc2985087..829d2c8949f 100644 --- a/app/views/admin/runners/_runner.html.haml +++ b/app/views/admin/runners/_runner.html.haml @@ -56,8 +56,9 @@ .table-section.section-10 .table-mobile-header{ role: 'rowheader' }= _('Last contact') .table-mobile-content - - if runner.contacted_at - = time_ago_with_tooltip runner.contacted_at + - contacted_at = runner_contacted_at(runner) + - if contacted_at + = time_ago_with_tooltip contacted_at - else = _('Never') |