aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/workbenches/show.html.slim
diff options
context:
space:
mode:
authorjpl2017-03-20 16:14:45 +0100
committerjpl2017-03-20 16:19:26 +0100
commitc5410dbc633cf5e3eaae35c5cc02325fd963bc0c (patch)
tree1a74267ba35e33e84c677db7b8ee5d5e95bdff8a /app/views/workbenches/show.html.slim
parentb94059f6d7732eacd2d30f0840a2712f42d2e9e9 (diff)
downloadchouette-core-c5410dbc633cf5e3eaae35c5cc02325fd963bc0c.tar.bz2
Refs #2706: Fix lines.count sorting on workbenches#show
Diffstat (limited to 'app/views/workbenches/show.html.slim')
-rw-r--r--app/views/workbenches/show.html.slim7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim
index f6c4c9c10..cbc9f3493 100644
--- a/app/views/workbenches/show.html.slim
+++ b/app/views/workbenches/show.html.slim
@@ -15,17 +15,18 @@
- if params[:q].present? or @wbench_refs.any?
.row.mb-sm
.col-lg-12.text-right
- = new_pagination @wbench_refs
+ / = new_pagination @wbench_refs
.row
.col-lg-12
- = render 'filters'
+ / = render 'filters'
- if @wbench_refs.any?
.row
.col-lg-12
= table_builder @wbench_refs,
- { :name => 'name', :status => Proc.new {|w| w.archived? ? ("<span class='fa fa-archive'></span> Conservé").html_safe : '-'},
+ { :name => 'name',
+ :status => Proc.new {|w| w.archived? ? ("<span class='fa fa-archive'></span> Conservé").html_safe : '-'},
:organisation => Proc.new {|w| w.organisation.name},
:validity_period => Proc.new {|w| w.validity_period.nil? ? '-' : t('validity_range', debut: l(w.try(:validity_period).try(:begin), format: :short), end: l(w.try(:validity_period).try(:end), format: :short))},
:lines => Proc.new {|w| w.lines.count},