diff options
| author | Luc Donnet | 2018-04-10 11:08:46 +0200 | 
|---|---|---|
| committer | GitHub | 2018-04-10 11:08:46 +0200 | 
| commit | 1e641dab55ccb40c9aade97eb6c139116dd9fdfa (patch) | |
| tree | 052518af6b86d3a12be7b8dbe1fb02dbb2bef878 | |
| parent | f627d82ce180fb0e487195485402d3278c03d2ef (diff) | |
| parent | 21f6beb14cbbee6cd5a6c042bceffbec352e8ea0 (diff) | |
| download | chouette-core-1e641dab55ccb40c9aade97eb6c139116dd9fdfa.tar.bz2 | |
Merge pull request #458 from af83/6442-referential-status-sort
Refs #6442 Fix Referential sort on status (attr archived_at)
| -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( \ | 
