Description:
change description behavior, popup desc window git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@52 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r28:0a910fb622c4 - - 1 file changed: 1 inserted, 1 deleted

@@ -1,37 +1,37
1 <div class="title">Hello <%=h @user.full_name %></div>
1 <div class="title">Hello <%=h @user.full_name %></div>
2 Current time is <%= format_short_time(Time.new) %>.
2 Current time is <%= format_short_time(Time.new) %>.
3
3
4 <div class="submitbox">
4 <div class="submitbox">
5 <% form_tag({:action => 'submit'}, :multipart => true) do %>
5 <% form_tag({:action => 'submit'}, :multipart => true) do %>
6 Problem: <%= select 'submission', 'problem_id',
6 Problem: <%= select 'submission', 'problem_id',
7 [['Specified in header','-1']] +
7 [['Specified in header','-1']] +
8 @problems.collect {|p| [p.full_name, p.id]},
8 @problems.collect {|p| [p.full_name, p.id]},
9 :selected => '-1' %>
9 :selected => '-1' %>
10 File: <%= file_field_tag 'file' %>
10 File: <%= file_field_tag 'file' %>
11 <%= submit_tag 'Submit' %>
11 <%= submit_tag 'Submit' %>
12 <% end %>
12 <% end %>
13 </div>
13 </div>
14
14
15 <hr/>
15 <hr/>
16
16
17 <p style="color: red"><%= flash[:notice] %></p>
17 <p style="color: red"><%= flash[:notice] %></p>
18
18
19 <div class="problist">
19 <div class="problist">
20 <% i = 0 %>
20 <% i = 0 %>
21 <% @problems.each do |p| %>
21 <% @problems.each do |p| %>
22 <div class="problist-each">
22 <div class="problist-each">
23 <div class="probname">
23 <div class="probname">
24 <%= "#{i+1}: #{p.full_name} (#{p.name})" %>
24 <%= "#{i+1}: #{p.full_name} (#{p.name})" %>
25 - <%= link_to '[task description]', p.url if (p.url!=nil) and (p.url!='') %>
25 + <%= link_to '[task description]', p.url, :popup => true if (p.url!=nil) and (p.url!='') %>
26 </div>
26 </div>
27 <div class="subinfo">
27 <div class="subinfo">
28 <%= format_submission(@prob_submissions[i][1],
28 <%= format_submission(@prob_submissions[i][1],
29 @prob_submissions[i][0]) %>
29 @prob_submissions[i][0]) %>
30 </div>
30 </div>
31 </div>
31 </div>
32 <% i = i+1 %>
32 <% i = i+1 %>
33 <% end %>
33 <% end %>
34 </div>
34 </div>
35
35
36 <hr />
36 <hr />
37
37
You need to be logged in to leave comments. Login now