diff --git a/app/views/evaluations/_exercises_progress_table.html.erb b/app/views/evaluations/_exercises_progress_table.html.erb index d603d020ea..7b06cb6dfa 100644 --- a/app/views/evaluations/_exercises_progress_table.html.erb +++ b/app/views/evaluations/_exercises_progress_table.html.erb @@ -1,4 +1,6 @@ -<%= javascript_include_tag 'dolos' %> +<%= content_for :javascripts do %> + <%= javascript_include_tag 'dolos' %> +<% end %>
diff --git a/app/views/submissions/index.html.erb b/app/views/submissions/index.html.erb index 2059b316e5..b099b00014 100644 --- a/app/views/submissions/index.html.erb +++ b/app/views/submissions/index.html.erb @@ -1,6 +1,8 @@ <%= render 'activities/navbar_links' if @activity %> <%= render 'courses/navbar_links' if @course && !@activity %> -<%= javascript_include_tag 'dolos' %> +<%= content_for :javascripts do %> + <%= javascript_include_tag 'dolos' %> +<% end %>