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

@@ -76,7 +76,7
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
@@ -96,12 +96,12
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