diff options
| author | Luc Donnet | 2018-05-28 18:26:58 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-28 18:26:58 +0200 |
| commit | 4667e76f5280cf40f9ee494c6764182970760132 (patch) | |
| tree | b9c382c6dd00c30ebd17bdb434c46fcfb7f0836b | |
| parent | 0a8468df56d072a5d4a2bfc431e84966496a092b (diff) | |
| parent | 353ab119bb628947000ed57f740d3b380be057d3 (diff) | |
| download | chouette-core-4667e76f5280cf40f9ee494c6764182970760132.tar.bz2 | |
Merge pull request #561 from af83/6863-workbench-showwiki
Refs #6863 Display import & export actions on conditions
| -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' |
