diff options
| author | Luc Donnet | 2018-05-23 15:14:45 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-23 15:14:45 +0200 |
| commit | 90e5289f48fa840567b8b758ebc4d0c90c5ddf47 (patch) | |
| tree | 393282fded78092ce6e64b618e0ff8130257ac72 | |
| parent | 192f7b1c8a42e9de63aab64c4f815ebddde7fbd6 (diff) | |
| parent | 81f28c3a263986552213e038e76b8961e4a5c060 (diff) | |
| download | chouette-core-90e5289f48fa840567b8b758ebc4d0c90c5ddf47.tar.bz2 | |
Merge pull request #527 from af83/6575-dashboard-workbench-outputs
Refs #6575 Add Workbench outputs to dashboard
| -rw-r--r-- | app/views/dashboards/_dashboard.html.slim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/dashboards/_dashboard.html.slim b/app/views/dashboards/_dashboard.html.slim index ce869ee4a..18105041a 100644 --- a/app/views/dashboards/_dashboard.html.slim +++ b/app/views/dashboards/_dashboard.html.slim @@ -6,6 +6,24 @@ h3.panel-title.with_actions div = link_to t('dashboards.workbench.title', organisation: workbench.organisation.name), workbench_path(workbench) + span.badge.ml-xs = workbench.output.referentials.count if workbench.output.referentials.present? + + div + = link_to '', workbench_path(workbench), class: ' fa fa-chevron-right pull-right', title: t('workbenches.index.offers.see') + + - if workbench.output.referentials.present? + .list-group + - workbench.output.referentials.limit(5).each do |referential| + = link_to referential.name, referential_path(referential), class: 'list-group-item' + - else + .panel-body + em.small.text-muted = t('workbenches.index.offers.no_content') + + .panel.panel-default + .panel-heading + h3.panel-title.with_actions + div + = link_to t('dashboards.workbench.title', organisation: workbench.organisation.name), workbench_path(workbench) span.badge.ml-xs = workbench.all_referentials.uniq.count if workbench.all_referentials.present? div |
