aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2018-03-14 08:27:59 +0100
committerGitHub2018-03-14 08:27:59 +0100
commit2676d6950bfa0e9930b894125e027096d56e3699 (patch)
tree5acbdf727cc2fb4274c2d81480de8c6b32b85cd5
parentb4fd0ae20777d2b0e5da9e1027c5a14c89393551 (diff)
downloadchouette-core-2676d6950bfa0e9930b894125e027096d56e3699.tar.bz2
Delete @dashboard call to create link for calendar Refs #61876187-dashboard-calendar-link-fix
-rw-r--r--app/views/dashboards/_dashboard.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/dashboards/_dashboard.html.slim b/app/views/dashboards/_dashboard.html.slim
index 8e4772f73..4adf335d2 100644
--- a/app/views/dashboards/_dashboard.html.slim
+++ b/app/views/dashboards/_dashboard.html.slim
@@ -28,7 +28,7 @@
- if workbench.calendars.present?
.list-group
- workbench.calendars.order("updated_at desc").limit(5).each do |calendar|
- = link_to calendar.name, workgroup_calendar_path(@dashboard.workbench.workgroup, calendar), class: 'list-group-item'
+ = link_to calendar.name, workgroup_calendar_path(workbench.workgroup, calendar), class: 'list-group-item'
- else
.panel-body
em.small.text-muted