Skip to content

Commit d1b4489

Browse files
committed
Get rid of usernames on submission
1 parent e29ec14 commit d1b4489

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/views/submissions/_submission_details.html.erb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@
3232
<% end %>
3333
<% if (can? :teach, @course) or not @is_paste %>
3434
<li>
35-
Submitted at <%= @submission.created_at.strftime("%H:%M %d.%m.%Y") %> by
35+
Submitted at <%= @submission.created_at.strftime("%H:%M %d.%m.%Y") %>
3636
<% if can? :teach, @course %>
37-
<%= link_to @submission.user.username, participant_path(@submission.user) %>.
38-
<% else %>
39-
<%= @submission.user.username %>.
37+
by <%= link_to @submission.user.email, participant_path(@submission.user) %>.
4038
<% end %>
4139
</li>
4240
<% end %>

0 commit comments

Comments
 (0)