Description:
fix link to user stat from hall of fame
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r612:3636a3114baf - - 1 file changed: 8 inserted, 8 deleted
@@ -44,7 +44,7 | |||
|
44 | 44 | %tr |
|
45 | 45 | %td.info_param Best Runtime |
|
46 | 46 | %td |
|
47 |
- by #{link_to @best[:runtime][:user], |
|
|
47 | + by #{link_to @best[:runtime][:user], stat_user_path(@best[:runtime][:user_id])} | |
|
48 | 48 | %br |
|
49 | 49 | using <span class="text-success">#{@best[:runtime][:lang]}</span> |
|
50 | 50 | %br |
@@ -62,7 +62,7 | |||
|
62 | 62 | title: "This counts only for submission with 100% score. Right now, java is excluded from memory usage competition. (Because it always uses 2GB memory...)"} |
|
63 | 63 | [?] |
|
64 | 64 | %td |
|
65 |
- by #{link_to @best[:memory][:user], |
|
|
65 | + by #{link_to @best[:memory][:user], stat_user_path(@best[:memory][:user_id])} | |
|
66 | 66 | %br |
|
67 | 67 | using <span class="text-success">#{@best[:memory][:lang]}</span> |
|
68 | 68 | %br |
@@ -74,7 +74,7 | |||
|
74 | 74 | %tr |
|
75 | 75 | %td.info_param Shortest Code |
|
76 | 76 | %td |
|
77 |
- by #{link_to @best[:length][:user], |
|
|
77 | + by #{link_to @best[:length][:user], stat_user_path(@best[:length][:user_id])} | |
|
78 | 78 | %br |
|
79 | 79 | using <span class="text-success">#{@best[:length][:lang]}</span> |
|
80 | 80 | %br |
@@ -87,7 +87,7 | |||
|
87 | 87 | %td.info_param First solver |
|
88 | 88 | %td |
|
89 | 89 | - if @best[:first][:user] != '(NULL)' |
|
90 |
- #{link_to @best[:first][:user], |
|
|
90 | + #{link_to @best[:first][:user], stat_user_path(@best[:first][:user_id])} is the first solver | |
|
91 | 91 | %br |
|
92 | 92 | using <span class="text-success">#{@best[:first][:lang]}</span> |
|
93 | 93 | %br |
@@ -113,23 +113,23 | |||
|
113 | 113 | %tr |
|
114 | 114 | %td= lang |
|
115 | 115 | %td |
|
116 |
- = link_to value[:runtime][:user], |
|
|
116 | + = link_to value[:runtime][:user], stat_user_path(value[:runtime][:user_id]) | |
|
117 | 117 | %br |
|
118 | 118 | = "#{(value[:runtime][:value] * 1000).to_i} @" |
|
119 | 119 | = link_to "#" + value[:runtime][:sub_id].to_s, submission_path( value[:runtime][:sub_id]) |
|
120 | 120 | %td |
|
121 |
- = link_to value[:memory][:user], |
|
|
121 | + = link_to value[:memory][:user], stat_user_path( value[:memory][:user_id]) | |
|
122 | 122 | %br |
|
123 | 123 | = "#{number_with_delimiter(value[:memory][:value])} @" |
|
124 | 124 | = link_to "#" + value[:memory][:sub_id].to_s, submission_path(value[:memory][:sub_id]) |
|
125 | 125 | %td |
|
126 |
- = link_to value[:length][:user], |
|
|
126 | + = link_to value[:length][:user], stat_user_path(value[:length][:user_id]) | |
|
127 | 127 | %br |
|
128 | 128 | = "#{value[:length][:value]} @" |
|
129 | 129 | = link_to "#" + value[:length][:sub_id].to_s, submission_path(value[:length][:sub_id]) |
|
130 | 130 | %td |
|
131 | 131 | - if value[:first][:user] != '(NULL)' #TODO: i know... this is wrong... |
|
132 |
- = link_to value[:first][:user], |
|
|
132 | + = link_to value[:first][:user], stat_user_path(value[:first][:user_id]) | |
|
133 | 133 | %br |
|
134 | 134 | = "#{value[:first][:value]} @" |
|
135 | 135 | = link_to "#" + value[:first][:sub_id].to_s, submission_path( value[:first][:sub_id]) |
You need to be logged in to leave comments.
Login now