diff options
| author | cedricnjanga | 2018-04-06 07:03:01 -0700 | 
|---|---|---|
| committer | cedricnjanga | 2018-04-06 07:03:01 -0700 | 
| commit | 21f6beb14cbbee6cd5a6c042bceffbec352e8ea0 (patch) | |
| tree | 86b0ded48556d3cae8c3d39c4fdd317eb68d7577 /app/views/workbenches | |
| parent | 25473075be6b31632295c95696891368b5bc26f4 (diff) | |
| download | chouette-core-21f6beb14cbbee6cd5a6c042bceffbec352e8ea0.tar.bz2 | |
Refs #6442 Fix Referential sort on status (attr archived_at)6442-referential-status-sort
Diffstat (limited to 'app/views/workbenches')
| -rw-r--r-- | app/views/workbenches/show.html.slim | 5 | 
1 files 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? ? ("<div class='td-block'><span class='fa fa-archive'></span><span>#{t('activerecord.attributes.referential.archived_at')}</span></div>").html_safe : ("<div class='td-block'><span class='sb sb-lg sb-preparing'></span><span>#{t('activerecord.attributes.referential.archived_at_null')}</span></div>").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( \ | 
