Use I18n-JS rather than rails-i18n in .js.erb files
This commit is contained in:

committed by
Sebastian Serth

parent
d6c4df1bac
commit
34aac83909
@ -94,7 +94,7 @@ CodeOceanEditorFlowr = {
|
||||
var body = resultTile.find('.card-body');
|
||||
body.html(result.body);
|
||||
body.append('<a target="_blank" href="' + questionUrl + '" class="btn btn-primary">' +
|
||||
'<%= I18n.t('exercises.implement.flowr.go_to_question') %></a>');
|
||||
`${I18n.t('exercises.implement.flowr.go_to_question')}</a>`);
|
||||
body.find('.btn').on('click', CodeOceanEditor.createEventHandler('editor_flowr_click_question', questionUrl));
|
||||
|
||||
flowrHintBody.append(resultTile);
|
||||
|
Reference in New Issue
Block a user