Description:
add more link in submissions and profile page
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r459:d1517fe62951 - - 2 files changed: 9 inserted, 3 deleted

@@ -21,12 +21,18
21 %tbody
21 %tbody
22 %tr{class: cycle('info-even','info-odd')}
22 %tr{class: cycle('info-even','info-odd')}
23 %td.field User:
23 %td.field User:
24 - %td.value= "(#{@submission.user.login}) #{@submission.user.full_name}"
24 + %td.value
25 + - if @submission.user
26 + = link_to "(#{@submission.user.login})", controller: "users", action: "profile", id: @submission.user
27 + = @submission.user.full_name
28 + - else
29 + = "(n/a)"
25 %tr{class: cycle('info-even','info-odd')}
30 %tr{class: cycle('info-even','info-odd')}
26 %td.field Problem:
31 %td.field Problem:
27 %td.value
32 %td.value
28 - if @submission.problem!=nil
33 - if @submission.problem!=nil
29 - = "(#{@submission.problem.name}) #{@submission.problem.full_name}"
34 + = link_to "(#{@submission.problem.name})", controller: "problems", action: "stat", id: @submission.problem
35 + = @submission.problem.full_name
30 - else
36 - else
31 = "(n/a)"
37 = "(n/a)"
32 %tr{class: cycle('info-even','info-odd')}
38 %tr{class: cycle('info-even','info-odd')}
@@ -53,7 +53,7
53 - next unless s.problem
53 - next unless s.problem
54 %tr
54 %tr
55 %td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id
55 %td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id
56 - %td= s.problem.name
56 + %td= link_to s.problem.name, controller: "problems", action: "stat", id: s.problem
57 %td= s.problem.full_name
57 %td= s.problem.full_name
58 %td= s.language.pretty_name
58 %td= s.language.pretty_name
59 %td #{s.submitted_at.strftime('%Y-%m-%d %H:%M')} (#{time_ago_in_words(s.submitted_at)} ago)
59 %td #{s.submitted_at.strftime('%Y-%m-%d %H:%M')} (#{time_ago_in_words(s.submitted_at)} ago)
You need to be logged in to leave comments. Login now