Show More
Commit Description:
NEED TESTING...
Commit Description:
NEED TESTING
move to stronger parameter for xxx.new(params[
References:
File last commit:
Show/Diff file:
Action:
app/views/main/submission.html.haml
| 31 lines
| 867 B
| text/x-haml
| HamlLexer
|
|
r78 | = user_title_bar(@user) | ||
|
r51 | |||
r559 | .panel.panel-info | |||
.panel-heading | ||||
Select Problems | ||||
.panel-body | ||||
.form-inline | ||||
= select 'submission', | ||||
'problem_id', | ||||
@problems.collect {|p| ["[#{p.name}] #{p.full_name}", main_submission_url(p.id)]}, | ||||
r561 | { selected: (@problem ? main_submission_url(@problem) : -1) }, | |||
{ class: 'select2 form-control'} | ||||
%button.btn.btn-primary.btn-sm.go-button#problem_go{data: {source: '#submission_problem_id'}} Go | ||||
|
r51 | |||
|
r53 | - if @problem!=nil | ||
%h2= "Task: #{@problem.full_name} (#{@problem.name})" | ||||
|
r51 | - if @submissions!=nil | ||
|
r53 | - if @submissions.length>0 | ||
r565 | %table.table | |||
%thead | ||||
%th No. | ||||
%th # | ||||
%th At | ||||
%th Source | ||||
%th Result | ||||
%th{:width => "300px"} Compiler message | ||||
%th | ||||
|
r53 | = render :partial => 'submission', :collection => @submissions | ||
- else | ||||
No submission | ||||