Show More
Commit Description:
initial commit...
Commit Description:
initial commit git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@1 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/main/list.rhtml | 38 lines | 800 B | text/html+ruby | RhtmlLexer |
pramook
initial commit...
r0 <h1>Hello <%=h @user.full_name %></h1>
<div class="usermenu">
<%= user_options %>
</div>
<hr>
<p style="color: red"><%= flash[:notice] %></p>
<div class="problist">
<% i = 0 %>
<% @problems.each do |p| %>
<div class="problist-each">
<div class="probname">
<%= "#{i+1}: #{p.full_name} (#{p.name})" %>
</div>
<div class="subinfo">
<%= format_submission(@prob_submissions[i][1],
@prob_submissions[i][0]) %>
</div>
</div>
<% i = i+1 %>
<% end %>
</div>
<br />
<hr />
<br />
<% 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 %>