- content_for :head do = javascript_include_tag "announcement_refresh" = user_title_bar(@user) - if @user.section passcode for CP Unofficial Logo voting is %strong= @user.section %br - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true) %p=t 'main.start_soon' .row .col-md-7 - if GraderConfiguration.show_submitbox_to?(@user) .card.border-primary .card-header.text-bg-primary Submission .card-body = render 'submission_box' - if GraderConfiguration.show_tasks_to?(@user) - if not GraderConfiguration.multicontests? %table.table.table-striped.table-condensed %thead %tr %th Task name %th Full name %th # of sub(s) %th Results %th %tbody = render :partial => 'problem', :collection => @problems - else - @contest_problems.each do |cp| - if cp[:problems].length > 0 %h2{:class =>'contest-title'} = "#{cp[:contest] ? cp[:contest].title : 'Public problems'}" %table.info %tr.info-head %th Task name %th Full name %th # of sub(s) %th Results %th = render :partial => 'problem', :collection => cp[:problems] .col-md-5 .card .card-header Announcement = link_to 'Manage', announcements_path, class: 'btn btn-secondary btn-sm' %ul.list-group.list-group-flush = render :partial => 'announcement', :collection => @announcements -# %script{:type => 'text/javascript'} = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';".html_safe Announcement.registerRefreshEventTimer(); .modal.fade#compiler{tabindex: -1,role: 'dialog'} .modal-dialog.modal-lg{role:'document'} .modal-content .modal-header %button.close{type: 'button', data: {dismissed: :modal}, aria: {label: 'close'}} %span{aria: {hidden: 'true'}, data: {dismiss: 'modal'}} × %h4 Compiler message .modal-body %pre#compiler_msg .modal-footer %button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}} Close