diff options
| author | Alban Peignier | 2017-11-26 19:17:48 +0100 |
|---|---|---|
| committer | Alban Peignier | 2017-11-26 19:17:48 +0100 |
| commit | ab6f872e63db67756a4fe7ab25f11ddd97374ecc (patch) | |
| tree | 519eeec374a6c1a5a7dcf20c4bcc7fe0e41ab7e8 | |
| parent | df72c9e2b4d92f3ab925e106997ab862467ae829 (diff) | |
| download | chouette-core-ab6f872e63db67756a4fe7ab25f11ddd97374ecc.tar.bz2 | |
Provide a default Dashboard view. Refs #4655
| -rw-r--r-- | app/views/dashboards/_dashboard.html.slim | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app/views/dashboards/_dashboard.html.slim b/app/views/dashboards/_dashboard.html.slim new file mode 100644 index 000000000..0b5deffc6 --- /dev/null +++ b/app/views/dashboards/_dashboard.html.slim @@ -0,0 +1,37 @@ +.row + .col-lg-6.col-md-6.col-sm-6.col-xs-12 + - @dashboard.current_organisation.workbenches.each do |workbench| + .panel.panel-default + .panel-heading + h3.panel-title.with_actions + div + = workbench.name + span.badge.ml-xs = workbench.referentials.count if workbench.referentials.present? + + div + = link_to '', workbench_path(workbench), class: ' fa fa-chevron-right pull-right', title: t('.offers.see') + + - if workbench.referentials.present? + .list-group + - workbench.referentials.limit(5).each do |referential| + = link_to referential.name, referential_path(referential, workbench_id: referential.workbench_id, current_workbench_id: workbench.id), class: 'list-group-item' + - else + .panel-body + em.small.text-muted = t('.offers.no_content') + + .col-lg-6.col-md-6.col-sm-6.col-xs-12 + .panel.panel-default + .panel-heading + h3.panel-title + = "Référentiels d'arrêts" + .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' + + .panel.panel-default + .panel-heading + h3.panel-title + = "Référentiels de lignes" + .list-group + - @dashboard.current_organisation.line_referentials.all.each do |referential| + = link_to referential.name, line_referential_lines_path(referential), class: 'list-group-item' |
