diff options
| author | cedricnjanga | 2018-05-09 21:41:40 -0700 | 
|---|---|---|
| committer | cedricnjanga | 2018-05-09 21:41:40 -0700 | 
| commit | 353ab119bb628947000ed57f740d3b380be057d3 (patch) | |
| tree | 7c8f95876b8200362556f0b2e52b1ba84508fffe | |
| parent | fdde7e05c29738356abe488a1b80ade098ef269d (diff) | |
| download | chouette-core-353ab119bb628947000ed57f740d3b380be057d3.tar.bz2 | |
Refs #6863 Display import & export actions on conditions6863-workbench-show
| -rw-r--r-- | app/views/workbenches/show.html.slim | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim index 213c9e5f2..979e7ff04 100644 --- a/app/views/workbenches/show.html.slim +++ b/app/views/workbenches/show.html.slim @@ -6,8 +6,8 @@        - if policy(Workbench).update?          = link_to t('workbenches.actions.configure'), edit_workbench_path(@workbench), class: 'btn btn-primary'        - if policy(Referential).create? -        = link_to t('actions.import'), workbench_imports_path(@workbench), class: 'btn btn-primary' -        = link_to t('actions.export'), workbench_exports_path(@workbench), class: 'btn btn-primary' +        = link_to t('actions.import'), workbench_imports_path(@workbench), class: 'btn btn-primary' unless @workbench.workgroup.import_types.empty? +        = link_to t('actions.export'), workbench_exports_path(@workbench), class: 'btn btn-primary' unless @workbench.workgroup.export_types.empty?          = link_to t('actions.add'), new_workbench_referential_path(@workbench), class: 'btn btn-primary'        = link_to t('workbenches.actions.show_output'), workbench_output_path(@workbench), class: 'btn btn-primary' | 
