Show More
Commit Description:
add some lock in task...
Commit Description:
add some lock in task
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@55 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/main/list.rhtml
| 37 lines
| 931 B
| text/html+ruby
| RhtmlLexer
|
|
r21 | <div class="title">Hello <%=h @user.full_name %></div> | ||
Current time is <%= format_short_time(Time.new) %>. | ||||
|
r0 | |||
|
r7 | <div class="submitbox"> | ||
<% form_tag({:action => 'submit'}, :multipart => true) do %> | ||||
Problem: <%= select 'submission', 'problem_id', | ||||
[['Specified in header','-1']] + | ||||
@problems.collect {|p| [p.full_name, p.id]}, | ||||
:selected => '-1' %> | ||||
File: <%= file_field_tag 'file' %> | ||||
<%= submit_tag 'Submit' %> | ||||
<% end %> | ||||
</div> | ||||
|
r8 | <hr/> | ||
<p style="color: red"><%= flash[:notice] %></p> | ||||
|
r0 | <div class="problist"> | ||
<% i = 0 %> | ||||
<% @problems.each do |p| %> | ||||
<div class="problist-each"> | ||||
<div class="probname"> | ||||
<%= "#{i+1}: #{p.full_name} (#{p.name})" %> | ||||
|
r28 | <%= link_to '[task description]', p.url, :popup => true if (p.url!=nil) and (p.url!='') %> | ||
|
r0 | </div> | ||
<div class="subinfo"> | ||||
<%= format_submission(@prob_submissions[i][1], | ||||
@prob_submissions[i][0]) %> | ||||
</div> | ||||
</div> | ||||
<% i = i+1 %> | ||||
<% end %> | ||||
</div> | ||||
<hr /> | ||||