From 7026f147258c6a318504e2820686ebd2eb521e87 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sat, 11 Nov 2023 20:31:01 +0100 Subject: [PATCH] Fix download behavior for hidden file tree This commit fixes a regression from 944b4551, where the behavior was changed by mistake. --- app/views/exercises/_editor.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/exercises/_editor.html.slim b/app/views/exercises/_editor.html.slim index 4d084332..33eb8e0e 100644 --- a/app/views/exercises/_editor.html.slim +++ b/app/views/exercises/_editor.html.slim @@ -33,7 +33,7 @@ #statusbar.d-flex.justify-content-between div - - if !@embed_options[:disable_download] && !@exercise.hide_file_tree? + - if !@embed_options[:disable_download] && @exercise.hide_file_tree? button#download.p-0.border-0.btn-link.visible.bg-body.text-primary i.fa-solid.fa-arrow-down = t('exercises.editor.download')