aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/dashboards/_dashboard.html.slim
blob: f03301e23cd94457ce48cb35569c2d6a09d167c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.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')

    .panel.panel-default
      .panel-heading
        h3.panel-title.with_actions
          = "Modèles de calendrier"
          div
            = link_to '', calendars_path, class: ' fa fa-chevron-right pull-right'
      - if @dashboard.current_organisation.calendars.present?
        .list-group
          - @dashboard.current_organisation.calendars.order("updated_at desc").limit(5).each do |calendar|
            = link_to calendar.name, calendar_path(calendar), class: 'list-group-item'
      - else
        .panel-body
          em.small.text-muted Aucun modèle de calendrier défini

  .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'