aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/workbenches
diff options
context:
space:
mode:
authorcedricnjanga2018-04-06 07:03:01 -0700
committercedricnjanga2018-04-06 07:03:01 -0700
commit21f6beb14cbbee6cd5a6c042bceffbec352e8ea0 (patch)
tree86b0ded48556d3cae8c3d39c4fdd317eb68d7577 /app/views/workbenches
parent25473075be6b31632295c95696891368b5bc26f4 (diff)
downloadchouette-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.slim5
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( \