diff --git a/app/views/doorkeeper/authorized_applications/index.html.erb b/app/views/doorkeeper/authorized_applications/index.html.erb index 66562bb97..91663871e 100644 --- a/app/views/doorkeeper/authorized_applications/index.html.erb +++ b/app/views/doorkeeper/authorized_applications/index.html.erb @@ -31,9 +31,9 @@ <% @applications.each do |application| %> - <% most_recent_grant = Doorkeeper::AccessGrant.where(:application_id => application.id, - :resource_owner_id => current_user) - .sort_by(&:created_at).last %> + <% most_recent_grant = Doorkeeper::AccessGrant.where(application_id: application.id, + resource_owner_id: current_user) + .max_by(&:created_at) %> <%= application.name %> <% if application.scopes.include? "user_info" %>done<% end %> @@ -49,4 +49,4 @@ <% end %> - \ No newline at end of file + diff --git a/lib/modules/views/adminScoreboard.html.erb b/lib/modules/views/adminScoreboard.html.erb deleted file mode 100755 index e69de29bb..000000000 diff --git a/lib/modules/views/autograderDev.html.erb b/lib/modules/views/autograderDev.html.erb deleted file mode 100755 index b5cf3f0bd..000000000 --- a/lib/modules/views/autograderDev.html.erb +++ /dev/null @@ -1,39 +0,0 @@ -<%= if request.post? then - @jobs.inspect -end %> -

Autograder Development Handin

- -<%= form_tag({:action=>"autograderDev"},:multipart=>true) %> - - - - - - - - - - - - - - - - - - - - <% regradeOptions = @submissions.collect{ |s| - ["#{s.user.andrewID} - v#{s.version}", s.id] - } %> - - - - - - -
Tango Host:<%= text_field_tag("tangoHost","greatwhite.ics.cs.cmu.edu",:size=>20) %>
Tango Port:<%= text_field_tag("tangoPort","9090",:size=>5) %>
Submit in Debug Mode?<%= check_box_tag(:debug,"true") %>

Upload a File:<%= file_field_tag("file") %>
Select Previous
Submissions to Regrade:
<%= select(:regrade,:submission_id,regradeOptions, {},{:multiple=>"multiple"}) - %>
<%= submit_tag("Go Go Gadget Autograde") %>
- - -