Show More
Commit Description:
[web] more info on grader queues...
Commit Description:
[web] more info on grader queues git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@257 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/views/test/index.html.erb | 112 lines | 2.8 KiB | text/plain | TextLexer |
jittat
more styling...
r78 <%= user_title_bar(@user) %>
jittat
moved test interface functionality to test_controller...
r44 <h2>Test Interface</h2>
jittat
[web] normalize full_score to 100, more hints on how to submit questions, hint on the disabling to test interface during the last 30 minutes...
r125 <p>
<b>Note:</b> Test interface will be disabled in the last 30 minutes
of the contest time on your site.
</p>
jittat
moved test interface functionality to test_controller...
r44 <% if @problems.length==0 %>
There is no submission
<% else %>
<script type="text/javascript">
jittat
[web] fixed javascript incompatiblity...
r69 var submissionCount = new Array();
jittat
moved test interface functionality to test_controller...
r44 <% @submissions.each do |submission| %>
jittat
[web] fixed javascript incompatiblity...
r69 submissionCount[<%= submission.problem_id %>]=<%= submission.number %>;
jittat
moved test interface functionality to test_controller...
r44 <% end %>
jittat
[web] fixed javascript incompatiblity...
r69
jittat
moved test interface functionality to test_controller...
r44 function updateSubmissionList() {
currentProb = document.getElementById("test_request_problem_id").value;
count = submissionCount[currentProb];
submissionSelect = document.getElementById("test_request_submission_number");
jittat
[web] fixed javascript incompatiblity...
r69 old_len = submissionSelect.length;
// clear the box
for(i=0; i<old_len; i++)
submissionSelect.remove(0);
for(i=count; i>=1; i--) {
try {
submissionSelect.add(new Option(""+i,""+i,false,false),null);
} catch(ex) {
submissionSelect.add(new Option(""+i,""+i,false,false));
}
jittat
moved test interface functionality to test_controller...
r44 }
}
</script>
jittat
[web] added mode + access control, when sites started/finished...
r122 <% if Configuration.show_submitbox_to?(@user) %>
<div class="submitbox">
<%= error_messages_for 'submitted_test_request' %>
<% form_for :test_request, nil,
:url => { :action => 'submit'},
:html => { :multipart => true } do |f| %>
<table>
<tr>
<td>Task:</td>
<td>
<%= select(:test_request,
:problem_id,
@problems.collect {|p| [p.name, p.id]}, {},
{ :onclick => "updateSubmissionList();" }) %>
</td>
</tr>
<tr>
<td>Submission:</td>
<td>
<%= select(:test_request,
:submission_number,
((1..@submissions[0].number).collect {|n| [n,n]}).reverse) %>
</td>
</tr>
<tr>
<td>Input data:</td>
<td>
<%= f.file_field :input_file %>
</td>
<td>
(combined size should not exceed 2MB)
</td>
</tr>
<tr>
<td>
Additional file<sup><span style="color:red">*</span></sup>:
</td>
<td>
<%= f.file_field :additional_file %>
</td>
<td>
<small>
* This option works <u>only</u> for task max.
You can use this to submit <tt>questions.txt</tt>.<br/>
The file shall be copied to the execution directory before your program runs.
</small>
</td>
</tr>
<tr>
<td colspan="2">
<%= submit_tag 'submit' %>
</td>
</tr>
</table>
<% end %>
</div>
jittat
moved test interface functionality to test_controller...
r44 <% end %>
<h3>Previous requests</h3>
jittat
update views -- styling...
r51 <table class="info">
<tr class="info-head">
jittat
[web] fixing ticket #10...
r65 <th>at</th>
jittat
[web] better css styling...
r57 <th>problem</th>
jittat
[web] fixing ticket #10...
r65 <th>sub #</th>
jittat
[web] better css styling...
r57 <th>status</th>
<th>output (first 2kb)</th>
<th>compiler message</th>
jittat
[web] improved test result display...
r84 <th>detail</th>
jittat
moved test interface functionality to test_controller...
r44 </tr>
jittat
[web] improving readability of test_interface, re: ticket #10...
r64 <%= render :partial => 'test_request', :collection => @test_requests %>
jittat
moved test interface functionality to test_controller...
r44 </table>
<% end %>