diff options
| author | Alban Peignier | 2017-12-21 19:32:34 +0100 |
|---|---|---|
| committer | Alban Peignier | 2017-12-21 19:32:34 +0100 |
| commit | 93434ece5f7f5118f8342ff1bbe845458009f3eb (patch) | |
| tree | 8a2544bcf96ca7cfec31d31f61d159495a3ac5e7 | |
| parent | 938dae71ae29a0c2934a1027046d61dd5dcaf135 (diff) | |
| download | chouette-core-93434ece5f7f5118f8342ff1bbe845458009f3eb.tar.bz2 | |
Remove purchase windows from default dashboard (??). Add direct links to lines/companies/networks. Refs #5301
| -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' |
