diff options
| author | Alban Peignier | 2018-04-09 14:16:11 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2018-04-09 14:16:11 +0200 | 
| commit | 98c723ee956b478e8ffb466e461c9889a272efdf (patch) | |
| tree | 5e4a2e6268b6c81b58dfb5e66943bff8df101cd4 | |
| parent | 2ef506e97dd0e65a475bd9dd67a4f645d3eac045 (diff) | |
| download | chouette-core-98c723ee956b478e8ffb466e461c9889a272efdf.tar.bz2 | |
Hide merge create button in workbench_outputs/show. Refs #6466
| -rw-r--r-- | app/views/workbench_outputs/show.html.slim | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/app/views/workbench_outputs/show.html.slim b/app/views/workbench_outputs/show.html.slim index a9e106dbb..b310119e6 100644 --- a/app/views/workbench_outputs/show.html.slim +++ b/app/views/workbench_outputs/show.html.slim @@ -6,7 +6,8 @@    .row.mb-sm      .col-lg-12.text-right        = link_to t('.see_current_output'), referential_path(@workbench.output.current), class: 'btn btn-primary' if @workbench.output&.current -      = link_to t('merges.actions.create'), new_workbench_merge_path(@workbench), class: 'btn btn-primary' +      - if policy(Merge).create? +        = link_to t('merges.actions.create'), new_workbench_merge_path(@workbench), class: 'btn btn-primary'  .page_content    .container-fluid | 
