Description:
render compiler message as modal
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r624:8852e6128763 - - 3 files changed: 16 inserted, 4 deleted
@@ -29,24 +29,35 | |||
|
29 | 29 | - else |
|
30 | 30 | - @contest_problems.each do |cp| |
|
31 | 31 | - if cp[:problems].length > 0 |
|
32 | 32 | %h2{:class =>'contest-title'} |
|
33 | 33 | = "#{cp[:contest] ? cp[:contest].title : 'Public problems'}" |
|
34 | 34 | %table.info |
|
35 | 35 | %tr.info-head |
|
36 | 36 | %th Task name |
|
37 | 37 | %th Full name |
|
38 | 38 | %th # of sub(s) |
|
39 | 39 | %th Results |
|
40 | 40 | %th |
|
41 | 41 | = render :partial => 'problem', :collection => cp[:problems] |
|
42 | 42 | .col-md-5 |
|
43 | 43 | .panel.panel-info |
|
44 | 44 | .panel-heading |
|
45 | 45 | Announcement |
|
46 | 46 | %ul.list-group |
|
47 | 47 | = render :partial => 'announcement', :collection => @announcements |
|
48 | 48 | |
|
49 | 49 | %script{:type => 'text/javascript'} |
|
50 | 50 | = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';" |
|
51 | 51 | Announcement.registerRefreshEventTimer(); |
|
52 | 52 | |
|
53 | + .modal.fade#compiler{tabindex: -1,role: 'dialog'} | |
|
54 | + .modal-dialog.modal-lg{role:'document'} | |
|
55 | + .modal-content | |
|
56 | + .modal-header | |
|
57 | + %button.close{type: 'button', data: {dismissed: :modal}, aria: {label: 'close'}} | |
|
58 | + %span{aria: {hidden: 'true'}, data: {dismiss: 'modal'}} × | |
|
59 | + %h4 Compiler message | |
|
60 | + .modal-body | |
|
61 | + %pre#compiler_msg | |
|
62 | + .modal-footer | |
|
63 | + %button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}} Close |
You need to be logged in to leave comments.
Login now