From cc0a541add9bcb363963beee6b46f217f01a26df Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Fri, 11 Mar 2016 15:49:06 +0100 Subject: [PATCH] do not render instructions (as they are not used / filled) any longer. Instead, render markdown from the description. --- app/views/exercises/show.html.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/exercises/show.html.slim b/app/views/exercises/show.html.slim index cd0cabf3..2181acf2 100644 --- a/app/views/exercises/show.html.slim +++ b/app/views/exercises/show.html.slim @@ -9,9 +9,9 @@ h1 = row(label: 'exercise.title', value: @exercise.title) = row(label: 'exercise.user', value: link_to_if(policy(@exercise.author).show?, @exercise.author, @exercise.author)) -= row(label: 'exercise.description', value: @exercise.description) += row(label: 'exercise.description', value: render_markdown(@exercise.description)) = row(label: 'exercise.execution_environment', value: link_to_if(policy(@exercise.execution_environment).show?, @exercise.execution_environment, @exercise.execution_environment)) -= row(label: 'exercise.instructions', value: render_markdown(@exercise.instructions)) +/= row(label: 'exercise.instructions', value: render_markdown(@exercise.instructions)) = row(label: 'exercise.team', value: @exercise.team ? link_to(@exercise.team, @exercise.team) : nil) = row(label: 'exercise.maximum_score', value: @exercise.maximum_score) = row(label: 'exercise.public', value: @exercise.public?)