aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert2017-05-31 16:42:11 +0200
committerRobert2017-05-31 16:42:11 +0200
commit57771cd083c14cb915445bd8f2ca96b8c0035f2a (patch)
treee4d5ac90ed54a010c41a85b701029086761b2a8d
parent44f068fbcc52ff9c3f35de05178ea8581a79ec5a (diff)
downloadchouette-core-57771cd083c14cb915445bd8f2ca96b8c0035f2a.tar.bz2
Fixes: #3174
-rw-r--r--app/views/referentials/show.html.slim3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/referentials/show.html.slim b/app/views/referentials/show.html.slim
index befa851ab..cad076e2c 100644
--- a/app/views/referentials/show.html.slim
+++ b/app/views/referentials/show.html.slim
@@ -80,4 +80,5 @@
.modal-footer
button.btn.btn-link type='button' data-dismiss='modal' Annuler
- = f.button :submit, t('actions.clean_up') , class: 'btn btn-primary'
+ - unless policy(@referential).archived?
+ = buttonf.button :submit, t('actions.clean_up') , class: 'btn btn-primary'