Skip to content

Commit

Permalink
fix broken layout in submission table for lecture teacher or editors
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Oct 29, 2023
1 parent 3289e75 commit 7e68525
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/views/tutorials/_submission_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
data: { turbolinks: false } %>
<% end %>
</div>
<% if current_user.in?(submission.tutorial.tutors) %>
<div class="col-3 correction-column"
data-id="<%= submission.id %>">
<div class="col-3 correction-column"
data-id="<%= submission.id %>">
<% if current_user.in?(submission.tutorial.tutors) %>
<%= render partial: 'submissions/correction_column',
locals: { submission: submission } %>
</div>
<% else %>
<%= render partial: 'submissions/download',
locals: { submission: submission } %>
<% else %>
<%= render partial: 'submissions/download',
locals: { submission: submission } %>
<% end %>
<% end %>
</div>
<% if current_user.in?(submission.tutorial.tutors) %>
<div class="col-3 submission-actions"
data-id="<%= submission.id %>">
Expand Down

0 comments on commit 7e68525

Please sign in to comment.