aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/workbenches/show.html.slim
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/workbenches/show.html.slim')
-rw-r--r--app/views/workbenches/show.html.slim14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim
index 2f9937452..a979d85f8 100644
--- a/app/views/workbenches/show.html.slim
+++ b/app/views/workbenches/show.html.slim
@@ -55,14 +55,14 @@
li = link_to "Cloner", new_referential_path(from: referential)
- li
- - if referential.archived?
- - if referential.can_unarchive?
- = link_to "Désarchiver", unarchive_referential_path(referential), method: :put
- - else
- = link_to "Désarchiver", "#"
+ - if referential.archived?
+ - if referential.can_unarchive?
+ li = link_to "Désarchiver", unarchive_referential_path(referential), method: :put
- else
- = link_to "Archiver", archive_referential_path(referential), method: :put
+ li.disabled title="L'action est impossible pour ce référentiel"
+ = link_to "Désarchiver", "#"
+ - else
+ li = link_to "Archiver", archive_referential_path(referential), method: :put
li = link_to "Supprimer", referential_path(referential), method: :delete, :data => {:confirm => t('referentials.actions.destroy_confirm')}