Description:
fix link
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r794:67f10729d077 - - 1 file changed: 4 inserted, 4 deleted

@@ -67,41 +67,41
67 %td= submit_tag 'query'
67 %td= submit_tag 'query'
68
68
69
69
70 %h2 Logs
70 %h2 Logs
71
71
72 - if @sid
72 - if @sid
73 %table
73 %table
74 %tbody
74 %tbody
75 - @sid.each do |id|
75 - @sid.each do |id|
76 - user = User.where("login = ?",id).first
76 - user = User.where("login = ?",id).first
77 %tr
77 %tr
78 //%td= link_to id, controller: :user, action: :profile, id: id
78 //%td= link_to id, controller: :user, action: :profile, id: id
79 - %td= link_to id, "https://www.nattee.net/java/users/profile/#{user.id}"
79 + %td= link_to id, stat_user_path(user.id)
80 %td= user.full_name
80 %td= user.full_name
81
81
82 //%table.tablesorter-cafe#my_table
82 //%table.tablesorter-cafe#my_table
83 %table.info
83 %table.info
84 %thead
84 %thead
85 %tr.info-head
85 %tr.info-head
86 %th Time
86 %th Time
87 %th Action
87 %th Action
88 %th IP
88 %th IP
89 %th login
89 %th login
90 %th name
90 %th name
91 %th problem
91 %th problem
92 %th score
92 %th score
93 %tbody
93 %tbody
94 - if @logs
94 - if @logs
95 - @logs.each do |l|
95 - @logs.each do |l|
96 %tr{class: cycle('info-even','info-odd')}
96 %tr{class: cycle('info-even','info-odd')}
97 %td= l[:submitted_at].strftime "%Y.%b.%d %H:%M:%S"
97 %td= l[:submitted_at].strftime "%Y.%b.%d %H:%M:%S"
98 //%td= l[:id] == -1 ? "LOGIN" : link_to("submit #{l[:id]}", controller: 'graders' , action: 'submission', id: l[:id])
98 //%td= l[:id] == -1 ? "LOGIN" : link_to("submit #{l[:id]}", controller: 'graders' , action: 'submission', id: l[:id])
99 - %td= l[:id] == -1 ? "LOGIN" : link_to( "submit #{l[:id]}", "https://www.nattee.net/java/graders/submission/#{l[:id]}")
99 + %td= l[:id] == -1 ? "LOGIN" : link_to( "##{l[:id]}", submission_path(l[:id]))
100 %td= l[:ip_address]
100 %td= l[:ip_address]
101 //%td= link_to l[:login], controller: 'users', action: 'profile', id: l[:id]
101 //%td= link_to l[:login], controller: 'users', action: 'profile', id: l[:id]
102 - %td= link_to( l[:login], "https://www.nattee.net/java/users/profile/#{l.user_id}")
102 + %td= link_to( l[:login], stat_user_path(l.user_id))
103 %td= l[:full_name]
103 %td= l[:full_name]
104 %td= l[:id] == -1 ? "" : l.problem.name
104 %td= l[:id] == -1 ? "" : l.problem.name
105 - %td= l[:id] == -1 ? "" : l.points * 100/ l.problem.full_score
105 + %td.text-right= l[:id] == -1 ? "" : l.points * 100/ l.problem.full_score
106
106
107
107
You need to be logged in to leave comments. Login now