Description:
main page show problem code separately
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r447:049c108d9256 - - 2 files changed: 8 inserted, 3 deleted

@@ -1,18 +1,21
1 1 <tr class="info-<%= (problem_counter%2==0) ? "even" : "odd" %>">
2 2 <td>
3 3 <%= "#{problem_counter+1}" %>
4 4 </td>
5 5 <td>
6 - <%= "(#{problem.name}) #{problem.full_name}" %>
6 + <%= "#{problem.name}"%>
7 + </td>
8 + <td>
9 + <%= "#{problem.full_name}" %>
7 10 <%= link_to_description_if_any "[#{t 'main.problem_desc'}]", problem %>
8 11 </td>
9 12 <td align="center">
10 13 <%= @prob_submissions[problem.id][:count] %>
11 14 </td>
12 15 <td>
13 16 <%= render :partial => 'submission_short',
14 17 :locals => {
15 18 :submission => @prob_submissions[problem.id][:submission],
16 19 :problem_name => problem.name }%>
17 20 </td>
18 21 </tr>
@@ -16,36 +16,38
16 16
17 17
18 18 %hr/
19 19
20 20 - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true)
21 21 %p=t 'main.start_soon'
22 22
23 23 - if GraderConfiguration.show_tasks_to?(@user)
24 24 - if not GraderConfiguration.multicontests?
25 25 %table.info
26 26 %tr.info-head
27 27 %th
28 - %th Tasks
28 + %th Tasks name
29 + %th Full name
29 30 %th # of sub(s)
30 31 %th Results
31 32 = render :partial => 'problem', :collection => @problems
32 33 - else
33 34 - @contest_problems.each do |cp|
34 35 - if cp[:problems].length > 0
35 36 %h2{:class =>'contest-title'}
36 37 = "#{cp[:contest] ? cp[:contest].title : 'Public problems'}"
37 38 %table.info
38 39 %tr.info-head
39 40 %th
40 - %th Tasks
41 + %th Tasks name
42 + %th Full name
41 43 %th # of sub(s)
42 44 %th Results
43 45 = render :partial => 'problem', :collection => cp[:problems]
44 46
45 47
46 48 %hr/
47 49
48 50 %script{:type => 'text/javascript'}
49 51 = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';"
50 52 Announcement.registerRefreshEventTimer();
51 53
You need to be logged in to leave comments. Login now