Skip to content

Commit

Permalink
Merge pull request #5586 from dodona-edu/fix/editor-init
Browse files Browse the repository at this point in the history
Only init editor for exercises
  • Loading branch information
jorg-vr authored Jun 5, 2024
2 parents 454ba8e + ae8f008 commit ecfe128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/activities/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ end %>
<%= @activity.id %>,
"<%= @activity.programming_language&.editor_name || "text" %>",
<%= user_signed_in? %>,
<%= policy(@activity).submit? || !user_signed_in? %>,
<%= @activity.exercise? && (policy(@activity).submit? || !user_signed_in?) %>,
<%= @course&.id || "null" %>,
<%= raw "\"#{@series&.deadline&.httpdate}\"" || "null" %>,
"<%= submissions_url %>",
Expand Down

0 comments on commit ecfe128

Please sign in to comment.