Skip to content

Commit b1f9846

Browse files
committed
Change user identifier in user lists
1 parent 81b60ec commit b1f9846

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/helpers/submissions_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ def handle_langs_chain(exception)
8383
def submissions_for_datatables(submissions)
8484
submissions.map do |sub|
8585
user_col = if can? :read, sub.user
86-
link_to sub.user.login, participant_path(sub.user)
86+
link_to sub.user.email, participant_path(sub.user)
8787
else
88-
sub.user.login
88+
'user'
8989
end
9090
[
9191
sub.created_at.strftime('%Y-%m-%d %H:%M'),

app/views/submissions/_list.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
<% if show_student_column %>
3636
<td>
3737
<% if current_user.id == submission.user.id || can_teach %>
38-
<%= link_to submission.user.login, participant_path(submission.user) %>
38+
<%= link_to submission.user.email, participant_path(submission.user) %>
3939
<% else %>
40-
<%= submission.user.login %>
40+
user
4141
<% end %>
4242
</td>
4343
<% end %>

0 commit comments

Comments
 (0)