diff options
| author | Zog | 2018-03-01 10:26:06 +0100 | 
|---|---|---|
| committer | Zog | 2018-03-01 10:26:06 +0100 | 
| commit | f62b28cad97b6c7c7e281f368e599acd54d4e559 (patch) | |
| tree | 6a6dcdbc24926afddb9245c4502eabfa4e951f68 /app/views/dashboards | |
| parent | 4acb5a53da2995aacc7b6ce2c802ad16fa563bf8 (diff) | |
| download | chouette-core-f62b28cad97b6c7c7e281f368e599acd54d4e559.tar.bz2 | |
Refs #6064; Use same logic to load calendars in dashboard and in controller6064-inconsistency-in-dashboard
Diffstat (limited to 'app/views/dashboards')
| -rw-r--r-- | app/views/dashboards/_dashboard.html.slim | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/app/views/dashboards/_dashboard.html.slim b/app/views/dashboards/_dashboard.html.slim index 7f78934a6..8d0e723a6 100644 --- a/app/views/dashboards/_dashboard.html.slim +++ b/app/views/dashboards/_dashboard.html.slim @@ -22,12 +22,12 @@        .panel.panel-default          .panel-heading            h3.panel-title.with_actions -            = link_to I18n.t("activerecord.models.calendar", count: @dashboard.current_organisation.calendars.size), workgroup_calendars_path(workbench.workgroup) +            = link_to I18n.t("activerecord.models.calendar", count: @dashboard.calendars.size), workgroup_calendars_path(workbench.workgroup)              div                = link_to '', workgroup_calendars_path(workbench.workgroup), class: ' fa fa-chevron-right pull-right' -        - if @dashboard.current_organisation.calendars.present? +        - if @dashboard.calendars.present?            .list-group -            - @dashboard.current_organisation.calendars.order("updated_at desc").limit(5).each do |calendar| +            - @dashboard.calendars.order("updated_at desc").limit(5).each do |calendar|                = link_to calendar.name, workgroup_calendars_path(workbench.workgroup, calendar), class: 'list-group-item'          - else            .panel-body | 
