From bcaf444b2107408b1eaf66bfc0d869b7b87b35f9 Mon Sep 17 00:00:00 2001 From: Alexander Kutelev Date: Fri, 4 Jan 2019 12:54:45 +0700 Subject: Take contacted_at value from the DB when it is about to be displayed in the Web interface with sorting enabled. --- app/views/admin/runners/_runner.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/views/admin/runners') 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') -- cgit v1.2.1