diff options
| -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 | 
