Description:
redact user name on view submission
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r848:057622a7b534 - - 3 files changed: 8 inserted, 2 deleted
@@ -23,6 +23,8 | |||
|
23 | 23 | - if GraderConfiguration.show_grading_result |
|
24 | 24 | = link_to '[detailed result]', :action => 'result', :id => submission.id |
|
25 | 25 | - if submission.graded_at |
|
26 | + = link_to "#{t 'main.cmp_msg'}", compiler_msg_submission_path(submission), {popup: true,remote: true,class: 'btn btn-xs btn-info'} | |
|
27 | + -# | |
|
26 | 28 | %button.btn.btn-info.btn-xs{type: 'button', data: {toggle: 'modal', target: '#compiler'}} |
|
27 | 29 | =t 'main.cmp_msg' |
|
28 | 30 | = link_to "#{t 'main.src_link'}", download_submission_path(submission.id), class: 'btn btn-xs btn-info' |
@@ -48,7 +48,6 | |||
|
48 | 48 | = render :partial => 'submission_short', |
|
49 | 49 | :locals => {submission: @submission, problem_name: @problem.name, problem_id: @problem.id } |
|
50 | 50 | |
|
51 | - - if @submission | |
|
52 | 51 |
|
|
53 | 52 |
|
|
54 | 53 |
|
@@ -57,7 +56,9 | |||
|
57 | 56 |
|
|
58 | 57 |
|
|
59 | 58 |
|
|
60 |
- |
|
|
59 | + %pre#compiler_msg | |
|
60 | + - if @submission | |
|
61 | + = @submission.compiler_message | |
|
61 | 62 |
|
|
62 | 63 |
|
|
63 | 64 |
@@ -30,11 +30,14 | |||
|
30 | 30 | %td.text-right |
|
31 | 31 | %strong User |
|
32 | 32 | %td |
|
33 | + - if @current_user.admin? ||@current_user == @submission.user | |
|
33 | 34 |
- if @submission.user |
|
34 | 35 | = link_to "#{@submission.user.login}", stat_user_path(@submission.user) |
|
35 | 36 | = @submission.user.full_name |
|
36 | 37 | - else |
|
37 | 38 | = "(n/a)" |
|
39 | + - else | |
|
40 | + = '-- REDACTED --' | |
|
38 | 41 | %tr |
|
39 | 42 | %td.text-right |
|
40 | 43 | %strong Task |
You need to be logged in to leave comments.
Login now