' +
+ '' +
- '
',
@@ -80,7 +85,7 @@ CodeOceanEditorFlowr = {
handleStderrOutputForFlowr: function () {
if (! this.isFlowrEnabled) return;
- var flowrHintBody = $('#flowrHint .panel-body');
+ var flowrHintBody = $('#flowrHint .card-body');
flowrHintBody.empty();
var self = this;
@@ -92,11 +97,11 @@ CodeOceanEditorFlowr = {
var resultTile = $(collapsibleTileHtml);
var questionUrl = 'https://stackoverflow.com/questions/' + result.question_id;
- var header = resultTile.find('h4 > a');
+ var header = resultTile.find('span');
header.text(result.title);
header.on('click', self.createEventHandler('editor_flowr_expand_question', questionUrl));
- var body = resultTile.find('.panel-body');
+ var body = resultTile.find('.card-body');
body.html(result.body);
body.append('
' +
'<%= I18n.t('exercises.implement.flowr.go_to_question') %>');
diff --git a/app/views/exercises/_editor_output.html.slim b/app/views/exercises/_editor_output.html.slim
index 729ec129..133b558e 100644
--- a/app/views/exercises/_editor_output.html.slim
+++ b/app/views/exercises/_editor_output.html.slim
@@ -57,4 +57,4 @@ div.h-100 id='output_sidebar_uncollapsed' class='d-none col-sm-12 enforce-bottom
- if CodeOcean::Config.new(:code_ocean).read[:flowr][:enabled]
#flowrHint.card.text-white.bg-info data-url=CodeOcean::Config.new(:code_ocean).read[:flowr][:url] role='tab'
.card-header = t('exercises.implement.flowr.heading')
- .card-body
+ .card-body.text-dark.bg-white
diff --git a/config/routes.rb b/config/routes.rb
index 9ea5ab24..c146a69b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -40,8 +40,6 @@ Rails.application.routes.draw do
get 'dashboard', to: 'dashboard#show'
end
- get '/help', to: 'application#help'
-
get '/insights', to: 'flowr#insights'
get 'statistics/', to: 'statistics#show'