From 81f28c3a263986552213e038e76b8961e4a5c060 Mon Sep 17 00:00:00 2001 From: cedricnjanga Date: Wed, 25 Apr 2018 21:00:37 -0700 Subject: Refs #6575 Add Workbench outputs to dashboard --- app/views/dashboards/_dashboard.html.slim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 @@ -1,6 +1,24 @@ .row .col-lg-6.col-md-6.col-sm-6.col-xs-12 - @dashboard.current_organisation.workbenches.each do |workbench| + .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.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 -- cgit v1.2.3