Show More
Commit Description:
fix some layout problem: first time at main after login, using wrong layouts...
Commit Description:
fix some layout problem: first time at main after login, using wrong layouts
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@39 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/main/list.rhtml
| 49 lines
| 1.1 KiB
| text/html+ruby
| RhtmlLexer
|
|
|
r0 | <h1>Hello <%=h @user.full_name %></h1> | ||
|
|
r9 | (<%= 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})" %> | ||||
| </div> | ||||
| <div class="subinfo"> | ||||
| <%= format_submission(@prob_submissions[i][1], | ||||
| @prob_submissions[i][0]) %> | ||||
| </div> | ||||
| </div> | ||||
| <% i = i+1 %> | ||||
| <% end %> | ||||
| </div> | ||||
| <br /> | ||||
| <hr /> | ||||
| <br /> | ||||
|
|
r2 | <div class="submitbox"> | ||
|
|
r0 | <% 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 %> | ||||
|
|
r2 | </div> | ||
