Description:
update user profile and user list
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r450:fd6c259da216 - - 2 files changed: 6 inserted, 3 deleted

@@ -68,8 +68,9
68 68
69 69 <% for user in @users %>
70 70 <tr class="info-<%= cycle("odd","even") %>">
71 + <td><%= link_to user.login, controller: :users, :action => 'profile', :id => user %></td>
71 72 <% for column in User.content_columns %>
72 - <% if !@hidden_columns.index(column.name) %>
73 + <% if !@hidden_columns.index(column.name) and column.name != 'login' %>
73 74 <td><%=h user.send(column.name) %></td>
74 75 <% end %>
75 76 <% end %>
@@ -3,7 +3,7
3 3
4 4 %script{:type=>"text/javascript"}
5 5 $(function () {
6 - $('#submission_table').tablesorter({widgets: ['zebra','filter']});
6 + $('#submission_table').tablesorter({widgets: ['zebra']});
7 7 });
8 8
9 9 :css
@@ -27,8 +27,9
27 27 %tr
28 28 %th ID
29 29 %th Problem code
30 - %th Problem name
30 + %th Problem full name
31 31 %th Language
32 + %th Submitted at
32 33 %th Result
33 34 %th Score
34 35 - if session[:admin]
@@ -41,6 +42,7
41 42 %td= s.problem.name
42 43 %td= s.problem.full_name
43 44 %td= s.language.pretty_name
45 + %td #{s.submitted_at.strftime('%Y-%m-%d %H:%M')} (#{time_ago_in_words(s.submitted_at)} ago)
44 46 %td.fix-width= s.grader_comment
45 47 %td= (s.points*100)/s.problem.full_score
46 48 - if session[:admin]
You need to be logged in to leave comments. Login now