aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2017-11-30 11:50:55 +0100
committerAlban Peignier2017-11-30 11:50:55 +0100
commitda082e51238e056709508f180a3797fc008f9848 (patch)
tree6ec0fefe7fa2b422b84dcdb76ef104609b147162
parent7b019504fd792293f1112b2375228505fab303fe (diff)
downloadchouette-core-da082e51238e056709508f180a3797fc008f9848.tar.bz2
Add calendars section in default dashboard. Refs #5118
-rw-r--r--app/views/dashboards/_dashboard.html.slim14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/dashboards/_dashboard.html.slim b/app/views/dashboards/_dashboard.html.slim
index 0b5deffc6..f03301e23 100644
--- a/app/views/dashboards/_dashboard.html.slim
+++ b/app/views/dashboards/_dashboard.html.slim
@@ -19,6 +19,20 @@
.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