Description:
temporary for logo voting
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r810:1a6d4224ffe7 - - 1 file changed: 4 inserted, 0 deleted

@@ -1,52 +1,56
1 - content_for :head do
1 - content_for :head do
2 = javascript_include_tag "announcement_refresh"
2 = javascript_include_tag "announcement_refresh"
3
3
4 = user_title_bar(@user)
4 = user_title_bar(@user)
5 + - if @user.section
6 + passcode for CP Unofficial Logo voting is
7 + %strong= @user.section
8 + %br
5
9
6 - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true)
10 - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true)
7 %p=t 'main.start_soon'
11 %p=t 'main.start_soon'
8
12
9 .row
13 .row
10 .col-md-7
14 .col-md-7
11 - if GraderConfiguration.show_submitbox_to?(@user)
15 - if GraderConfiguration.show_submitbox_to?(@user)
12 .panel.panel-primary
16 .panel.panel-primary
13 .panel-heading
17 .panel-heading
14 Submission
18 Submission
15 .panel-body
19 .panel-body
16 = render :partial => 'submission_box'
20 = render :partial => 'submission_box'
17 - if GraderConfiguration.show_tasks_to?(@user)
21 - if GraderConfiguration.show_tasks_to?(@user)
18 - if not GraderConfiguration.multicontests?
22 - if not GraderConfiguration.multicontests?
19 %table.table.table-striped.table-condensed
23 %table.table.table-striped.table-condensed
20 %thead
24 %thead
21 %tr
25 %tr
22 %th Task name
26 %th Task name
23 %th Full name
27 %th Full name
24 %th # of sub(s)
28 %th # of sub(s)
25 %th Results
29 %th Results
26 %th
30 %th
27 %tbody
31 %tbody
28 = render :partial => 'problem', :collection => @problems
32 = render :partial => 'problem', :collection => @problems
29 - else
33 - else
30 - @contest_problems.each do |cp|
34 - @contest_problems.each do |cp|
31 - if cp[:problems].length > 0
35 - if cp[:problems].length > 0
32 %h2{:class =>'contest-title'}
36 %h2{:class =>'contest-title'}
33 = "#{cp[:contest] ? cp[:contest].title : 'Public problems'}"
37 = "#{cp[:contest] ? cp[:contest].title : 'Public problems'}"
34 %table.info
38 %table.info
35 %tr.info-head
39 %tr.info-head
36 %th Task name
40 %th Task name
37 %th Full name
41 %th Full name
38 %th # of sub(s)
42 %th # of sub(s)
39 %th Results
43 %th Results
40 %th
44 %th
41 = render :partial => 'problem', :collection => cp[:problems]
45 = render :partial => 'problem', :collection => cp[:problems]
42 .col-md-5
46 .col-md-5
43 .panel.panel-info
47 .panel.panel-info
44 .panel-heading
48 .panel-heading
45 Announcement
49 Announcement
46 = link_to 'Manage', announcements_path, class: 'btn btn-xs btn-default'
50 = link_to 'Manage', announcements_path, class: 'btn btn-xs btn-default'
47 %ul.list-group
51 %ul.list-group
48 = render :partial => 'announcement', :collection => @announcements
52 = render :partial => 'announcement', :collection => @announcements
49
53
50 %script{:type => 'text/javascript'}
54 %script{:type => 'text/javascript'}
51 = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';"
55 = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';"
52 Announcement.registerRefreshEventTimer();
56 Announcement.registerRefreshEventTimer();
You need to be logged in to leave comments. Login now