From ca5cbed5de9a71532b5c3a54915f5313b1c1acaa Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 28 Nov 2021 21:40:06 +0100 Subject: [PATCH] Use file type for exercise show (highlight.js) --- app/views/shared/_file.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_file.html.slim b/app/views/shared/_file.html.slim index b8122113..e8863f5c 100644 --- a/app/views/shared/_file.html.slim +++ b/app/views/shared/_file.html.slim @@ -7,4 +7,4 @@ - if file.teacher_defined_assessment? = row(label: 'file.feedback_message', value: render_markdown(file.feedback_message), class: 'm-0') = row(label: 'file.weight', value: file.weight) -= row(label: 'file.content', value: file.native_file? ? link_to_if(policy(file).show?, file.native_file.file.filename, file.native_file.url) : code_tag(file.content)) += row(label: 'file.content', value: file.native_file? ? link_to_if(policy(file).show?, file.native_file.file.filename, file.native_file.url) : code_tag(file.content, file.file_type.programming_language))