diff options
| -rw-r--r-- | app/views/dashboards/_dashboard.html.slim | 41 | 
1 files changed, 14 insertions, 27 deletions
| diff --git a/app/views/dashboards/_dashboard.html.slim b/app/views/dashboards/_dashboard.html.slim index b468fed27..075b94ddc 100644 --- a/app/views/dashboards/_dashboard.html.slim +++ b/app/views/dashboards/_dashboard.html.slim @@ -34,34 +34,21 @@            em.small.text-muted              = t('dasboard.calendars.none') -    .panel.panel-default -      .panel-heading -        h3.panel-title.with_actions -          = t('dasboard.purchase_windows.title') -          div -            = link_to '', purchase_windows_path, class: ' fa fa-chevron-right pull-right' -      - if @dashboard.current_organisation.purchase_windows.present? -        .list-group -          - @dashboard.current_organisation.purchase_windows.order("updated_at desc").limit(5).each do |purchase_window| -            = link_to purchase_window.name, referential_purchase_window_path(purchase_window.referential, purchase_window), class: 'list-group-item' -      - else -        .panel-body -          em.small.text-muted -            = t('dasboard.purchase_windows.none') -    .col-lg-6.col-md-6.col-sm-6.col-xs-12      .panel.panel-default -      .panel-heading -        h3.panel-title -          = t('dashboard.stop_area_referentials.title') -      .list-group -        - @dashboard.current_organisation.stop_area_referentials.each do |referential| -          = link_to referential.name, stop_area_referential_stop_areas_path(referential), class: 'list-group-item' +      - @dashboard.current_organisation.stop_area_referentials.each do |referential| +        .panel-heading +          h3.panel-title +            = referential.name +        .list-group +          = link_to Chouette::StopArea.model_name.human.pluralize.capitalize, stop_area_referential_stop_areas_path(referential), class: 'list-group-item'      .panel.panel-default -      .panel-heading -        h3.panel-title -          = t('dashboard.line_referentials.title') -      .list-group -        - @dashboard.current_organisation.line_referentials.all.each do |referential| -          = link_to referential.name, line_referential_lines_path(referential), class: 'list-group-item' +      - @dashboard.current_organisation.line_referentials.all.each do |referential| +        .panel-heading +          h3.panel-title +            = referential.name +        .list-group +            = link_to Chouette::Line.model_name.human.pluralize.capitalize, line_referential_lines_path(referential), class: 'list-group-item' +            = link_to Chouette::Company.model_name.human.pluralize.capitalize, line_referential_companies_path(referential), class: 'list-group-item' +            = link_to "Réseaux", line_referential_networks_path(referential), class: 'list-group-item' | 
