diff options
| author | cedricnjanga | 2018-04-25 21:00:37 -0700 |
|---|---|---|
| committer | cedricnjanga | 2018-04-25 21:00:37 -0700 |
| commit | 81f28c3a263986552213e038e76b8961e4a5c060 (patch) | |
| tree | 8e69081cae66ee8e358faf66539de4da25c0d3cb | |
| parent | f838c165685972992d1ee7f597c9d94662099d89 (diff) | |
| download | chouette-core-6575-dashboard-workbench-outputs.tar.bz2 | |
Refs #6575 Add Workbench outputs to dashboard6575-dashboard-workbench-outputs
| -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 466695b5a..5b55a4886 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 |
