Description:
temporary for logo voting
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r810:1a6d4224ffe7 - - 1 file changed: 4 inserted, 0 deleted
@@ -1,64 +1,68 | |||
|
1 | 1 | - content_for :head do |
|
2 | 2 | = javascript_include_tag "announcement_refresh" |
|
3 | 3 | |
|
4 | 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 | 10 | - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true) |
|
7 | 11 | %p=t 'main.start_soon' |
|
8 | 12 | |
|
9 | 13 | .row |
|
10 | 14 | .col-md-7 |
|
11 | 15 | - if GraderConfiguration.show_submitbox_to?(@user) |
|
12 | 16 | .panel.panel-primary |
|
13 | 17 | .panel-heading |
|
14 | 18 | Submission |
|
15 | 19 | .panel-body |
|
16 | 20 | = render :partial => 'submission_box' |
|
17 | 21 | - if GraderConfiguration.show_tasks_to?(@user) |
|
18 | 22 | - if not GraderConfiguration.multicontests? |
|
19 | 23 | %table.table.table-striped.table-condensed |
|
20 | 24 | %thead |
|
21 | 25 | %tr |
|
22 | 26 | %th Task name |
|
23 | 27 | %th Full name |
|
24 | 28 | %th # of sub(s) |
|
25 | 29 | %th Results |
|
26 | 30 | %th |
|
27 | 31 | %tbody |
|
28 | 32 | = render :partial => 'problem', :collection => @problems |
|
29 | 33 | - else |
|
30 | 34 | - @contest_problems.each do |cp| |
|
31 | 35 | - if cp[:problems].length > 0 |
|
32 | 36 | %h2{:class =>'contest-title'} |
|
33 | 37 | = "#{cp[:contest] ? cp[:contest].title : 'Public problems'}" |
|
34 | 38 | %table.info |
|
35 | 39 | %tr.info-head |
|
36 | 40 | %th Task name |
|
37 | 41 | %th Full name |
|
38 | 42 | %th # of sub(s) |
|
39 | 43 | %th Results |
|
40 | 44 | %th |
|
41 | 45 | = render :partial => 'problem', :collection => cp[:problems] |
|
42 | 46 | .col-md-5 |
|
43 | 47 | .panel.panel-info |
|
44 | 48 | .panel-heading |
|
45 | 49 | Announcement |
|
46 | 50 | = link_to 'Manage', announcements_path, class: 'btn btn-xs btn-default' |
|
47 | 51 | %ul.list-group |
|
48 | 52 | = render :partial => 'announcement', :collection => @announcements |
|
49 | 53 | |
|
50 | 54 | %script{:type => 'text/javascript'} |
|
51 | 55 | = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';" |
|
52 | 56 | Announcement.registerRefreshEventTimer(); |
|
53 | 57 | |
|
54 | 58 | .modal.fade#compiler{tabindex: -1,role: 'dialog'} |
|
55 | 59 | .modal-dialog.modal-lg{role:'document'} |
|
56 | 60 | .modal-content |
|
57 | 61 | .modal-header |
|
58 | 62 | %button.close{type: 'button', data: {dismissed: :modal}, aria: {label: 'close'}} |
|
59 | 63 | %span{aria: {hidden: 'true'}, data: {dismiss: 'modal'}} × |
|
60 | 64 | %h4 Compiler message |
|
61 | 65 | .modal-body |
|
62 | 66 | %pre#compiler_msg |
|
63 | 67 | .modal-footer |
|
64 | 68 | %button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}} Close |
You need to be logged in to leave comments.
Login now