From 21f6beb14cbbee6cd5a6c042bceffbec352e8ea0 Mon Sep 17 00:00:00 2001 From: cedricnjanga Date: Fri, 6 Apr 2018 07:03:01 -0700 Subject: Refs #6442 Fix Referential sort on status (attr archived_at) --- app/views/workbenches/show.html.slim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim index 8312338d0..7dd1583fa 100644 --- a/app/views/workbenches/show.html.slim +++ b/app/views/workbenches/show.html.slim @@ -32,7 +32,8 @@ end \ ), \ TableBuilderHelper::Column.new( \ - key: :status, \ + key: :archived_at, \ + name: Referential.tmf('status'), \ attribute: Proc.new {|w| w.referential_read_only? ? ("
#{t('activerecord.attributes.referential.archived_at')}
").html_safe : ("
#{t('activerecord.attributes.referential.archived_at_null')}
").html_safe} \ ), \ TableBuilderHelper::Column.new( \ @@ -45,7 +46,7 @@ ), \ TableBuilderHelper::Column.new( \ key: :lines, \ - name: t('activerecord.attributes.referential.number_of_lines'), \ + name: Referential.tmf('number_of_lines'), \ attribute: Proc.new {|w| w.lines.count} \ ), \ TableBuilderHelper::Column.new( \ -- cgit v1.2.3