diff options
| author | jpl | 2017-07-18 10:42:39 +0200 | 
|---|---|---|
| committer | jpl | 2017-07-18 10:42:39 +0200 | 
| commit | e0cc93333dbc78af7714b22d3c44efc0b7682a8f (patch) | |
| tree | de79b8f29a643aaef4c26859d206f0362aa64abf /app | |
| parent | 94024c697bba9ca2a8f0b96a6143e1c4b4b951fc (diff) | |
| download | chouette-core-e0cc93333dbc78af7714b22d3c44efc0b7682a8f.tar.bz2 | |
Refs #4108: updating view
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/workbenches/index.html.slim | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/workbenches/index.html.slim b/app/views/workbenches/index.html.slim index 0ce1085d0..833a22fb0 100644 --- a/app/views/workbenches/index.html.slim +++ b/app/views/workbenches/index.html.slim @@ -33,16 +33,16 @@              h3.panel-title.with_actions                div                  = t('.offers.referentials') -                span.badge.ml-xs = @workbench.referentials.count if @workbench.referentials.any? +                span.badge.ml-xs = @workbench.referentials.count if @workbench.all_referentials.any? -              - if @workbench.referentials.any? +              - if @workbench.all_referentials.any?                  div                    = link_to '', workbench_path(@workbench), class: ' fa fa-chevron-right pull-right', title: t('.offers.see') -          - if @workbench.referentials.any? +          - if @workbench.all_referentials.any?              .list-group -              - @workbench.referentials.each do |referential| -                = link_to referential.name, referential_path(referential), class: 'list-group-item' +              - @workbench.all_referentials.each_with_index do |referential, i| +                = link_to referential.name, referential_path(referential), class: 'list-group-item' if i < 6            - else              .panel-body @@ -61,8 +61,8 @@            - if @calendars.any?              .list-group -              - @calendars.each do |calendar| -                = link_to calendar.name, calendar_path(calendar), class: 'list-group-item' +              - @calendars.each_with_index do |calendar, i| +                = link_to calendar.name, calendar_path(calendar), class: 'list-group-item' if i < 6            - else              .panel-body  | 
