Description:
includes script.aculo.us js
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r324:eb6e267fd531 - - 2 files changed: 3 inserted, 2 deleted

@@ -1,15 +1,17
1 // This is a manifest file that'll be compiled into application.js, which will include all the files
1 // This is a manifest file that'll be compiled into application.js, which will include all the files
2 // listed below.
2 // listed below.
3 //
3 //
4 // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
4 // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5 // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
5 // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6 //
6 //
7 // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
7 // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8 // the compiled file.
8 // the compiled file.
9 //
9 //
10 // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
10 // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11 // GO AFTER THE REQUIRES BELOW.
11 // GO AFTER THE REQUIRES BELOW.
12 //
12 //
13 //= require prototype
13 //= require prototype
14 //= require prototype_ujs
14 //= require prototype_ujs
15 -
15 + //= require effects
16 + //= require dragdrop
17 + //= require controls
@@ -1,50 +1,49
1 - content_for :head do
1 - content_for :head do
2 - = javascript_include_tag "effects"
3 = javascript_include_tag "announcement_refresh"
2 = javascript_include_tag "announcement_refresh"
4
3
5 = user_title_bar(@user)
4 = user_title_bar(@user)
6
5
7 .announcementbox{:style => (@announcements.length==0 ? "display:none" : "")}
6 .announcementbox{:style => (@announcements.length==0 ? "display:none" : "")}
8 %span{:class => 'title'}
7 %span{:class => 'title'}
9 Announcements
8 Announcements
10 #announcementbox-body
9 #announcementbox-body
11 = render :partial => 'announcement', :collection => @announcements
10 = render :partial => 'announcement', :collection => @announcements
12
11
13 - if GraderConfiguration.show_submitbox_to?(@user)
12 - if GraderConfiguration.show_submitbox_to?(@user)
14 .submitbox
13 .submitbox
15 = error_messages_for 'submission'
14 = error_messages_for 'submission'
16 = render :partial => 'submission_box'
15 = render :partial => 'submission_box'
17
16
18
17
19 %hr/
18 %hr/
20
19
21 - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true)
20 - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true)
22 %p=t 'main.start_soon'
21 %p=t 'main.start_soon'
23
22
24 - if GraderConfiguration.show_tasks_to?(@user)
23 - if GraderConfiguration.show_tasks_to?(@user)
25 - if not GraderConfiguration.multicontests?
24 - if not GraderConfiguration.multicontests?
26 %table.info
25 %table.info
27 %tr.info-head
26 %tr.info-head
28 %th
27 %th
29 %th Tasks
28 %th Tasks
30 %th # of sub(s)
29 %th # of sub(s)
31 %th Results
30 %th Results
32 = render :partial => 'problem', :collection => @problems
31 = render :partial => 'problem', :collection => @problems
33 - else
32 - else
34 - @contest_problems.each do |cp|
33 - @contest_problems.each do |cp|
35 - if cp[:problems].length > 0
34 - if cp[:problems].length > 0
36 %h2{:class =>'contest-title'}
35 %h2{:class =>'contest-title'}
37 = "#{cp[:contest] ? cp[:contest].title : 'Public problems'}"
36 = "#{cp[:contest] ? cp[:contest].title : 'Public problems'}"
38 %table.info
37 %table.info
39 %tr.info-head
38 %tr.info-head
40 %th
39 %th
41 %th Tasks
40 %th Tasks
42 %th # of sub(s)
41 %th # of sub(s)
43 %th Results
42 %th Results
44 = render :partial => 'problem', :collection => cp[:problems]
43 = render :partial => 'problem', :collection => cp[:problems]
45
44
46
45
47 %hr/
46 %hr/
48
47
49 %script{:type => 'text/javascript'}
48 %script{:type => 'text/javascript'}
50 = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';"
49 = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';"
You need to be logged in to leave comments. Login now