Description:
(hack) add current time
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@29 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r9:fe5f286efaf9 - - 1 file changed: 1 inserted, 0 deleted
@@ -1,49 +1,50 | |||
|
1 | 1 | <h1>Hello <%=h @user.full_name %></h1> |
|
2 | + (<%= Time.new %>) | |
|
2 | 3 | |
|
3 | 4 | <div class="usermenu"> |
|
4 | 5 | <%= user_options %> |
|
5 | 6 | </div> |
|
6 | 7 | |
|
7 | 8 | <div class="submitbox"> |
|
8 | 9 | <% form_tag({:action => 'submit'}, :multipart => true) do %> |
|
9 | 10 | Problem: <%= select 'submission', 'problem_id', |
|
10 | 11 | [['Specified in header','-1']] + |
|
11 | 12 | @problems.collect {|p| [p.full_name, p.id]}, |
|
12 | 13 | :selected => '-1' %> |
|
13 | 14 | File: <%= file_field_tag 'file' %> |
|
14 | 15 | <%= submit_tag 'Submit' %> |
|
15 | 16 | <% end %> |
|
16 | 17 | </div> |
|
17 | 18 | |
|
18 | 19 | <hr/> |
|
19 | 20 | |
|
20 | 21 | <p style="color: red"><%= flash[:notice] %></p> |
|
21 | 22 | |
|
22 | 23 | <div class="problist"> |
|
23 | 24 | <% i = 0 %> |
|
24 | 25 | <% @problems.each do |p| %> |
|
25 | 26 | <div class="problist-each"> |
|
26 | 27 | <div class="probname"> |
|
27 | 28 | <%= "#{i+1}: #{p.full_name} (#{p.name})" %> |
|
28 | 29 | </div> |
|
29 | 30 | <div class="subinfo"> |
|
30 | 31 | <%= format_submission(@prob_submissions[i][1], |
|
31 | 32 | @prob_submissions[i][0]) %> |
|
32 | 33 | </div> |
|
33 | 34 | </div> |
|
34 | 35 | <% i = i+1 %> |
|
35 | 36 | <% end %> |
|
36 | 37 | </div> |
|
37 | 38 | |
|
38 | 39 | <br /> |
|
39 | 40 | <hr /> |
|
40 | 41 | <br /> |
|
41 | 42 | |
|
42 | 43 | <div class="submitbox"> |
|
43 | 44 | <% form_tag({:action => 'submit'}, :multipart => true) do %> |
|
44 | 45 | Problem: <%= select 'submission', 'problem_id', |
|
45 | 46 | [['Specified in header','-1']] + |
|
46 | 47 | @problems.collect {|p| [p.full_name, p.id]}, |
|
47 | 48 | :selected => '-1' %> |
|
48 | 49 | File: <%= file_field_tag 'file' %> |
|
49 | 50 | <%= submit_tag 'Submit' %> |
You need to be logged in to leave comments.
Login now