Show More
Commit Description:
new front page
Commit Description:
new front page
References:
File last commit:
Show/Diff file:
Action:
app/views/main/list.html.haml
| 57 lines
| 1.6 KiB
| text/x-haml
| HamlLexer
|
|
r192 | - content_for :head do | ||
|
r322 | = javascript_include_tag "announcement_refresh" | ||
|
r192 | |||
|
r78 | = user_title_bar(@user) | ||
|
r320 | - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true) | ||
|
r162 | %p=t 'main.start_soon' | ||
|
r132 | |||
r573 | .row | |||
.col-md-7 | ||||
- if GraderConfiguration.show_submitbox_to?(@user) | ||||
.submitbox | ||||
= render :partial => '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 | ||||
.panel.panel-info | ||||
.panel-heading | ||||
Announcement | ||||
%ul.list-group | ||||
= render :partial => 'announcement', :collection => @announcements | ||||
%hr/ | ||||
|
r278 | |||
|
r107 | %hr/ | ||
|
r78 | |||
|
r243 | %script{:type => 'text/javascript'} | ||
= "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';" | ||||
|
r192 | Announcement.registerRefreshEventTimer(); | ||