diff --git a/app/views/doorkeeper/applications/_delete_form.html.erb b/app/views/doorkeeper/applications/_delete_form.html.erb
index 8d8c93f87..d73690a91 100644
--- a/app/views/doorkeeper/applications/_delete_form.html.erb
+++ b/app/views/doorkeeper/applications/_delete_form.html.erb
@@ -1,5 +1,5 @@
<%- submit_btn_css ||= 'btn btn-link' %>
<%= form_tag oauth_application_path(application) do %>
- <%= submit_tag t('doorkeeper.applications.buttons.destroy'), onclick: "return confirm('#{ t('doorkeeper.applications.confirmations.destroy') }')", class: submit_btn_css %>
+ <%= submit_tag t('doorkeeper.applications.buttons.destroy'), onclick: "return confirm('#{t('doorkeeper.applications.confirmations.destroy')}')", class: submit_btn_css %>
<% end %>
diff --git a/app/views/doorkeeper/applications/_form.html.erb b/app/views/doorkeeper/applications/_form.html.erb
index eb638ff93..285ebe02b 100644
--- a/app/views/doorkeeper/applications/_form.html.erb
+++ b/app/views/doorkeeper/applications/_form.html.erb
@@ -1,4 +1,4 @@
-<%= form_for application, url: doorkeeper_submit_path(application), html: {class: 'form-horizontal', role: 'form'} do |f| %>
+<%= form_for application, url: doorkeeper_submit_path(application), html: { class: 'form-horizontal', role: 'form' } do |f| %>
<% if application.errors.any? %>
<%= t('doorkeeper.applications.form.error') %>
<% end %>
@@ -21,7 +21,7 @@
<% if Doorkeeper.configuration.native_redirect_uri %>
- <%= raw t('doorkeeper.applications.help.native_redirect_uri', native_redirect_uri: "#{ Doorkeeper.configuration.native_redirect_uri }
") %>
+ <%= raw t('doorkeeper.applications.help.native_redirect_uri', native_redirect_uri: "#{Doorkeeper.configuration.native_redirect_uri}
") %>
<% end %>
@@ -42,7 +42,7 @@
<% end %>
diff --git a/app/views/doorkeeper/applications/show.html.erb b/app/views/doorkeeper/applications/show.html.erb
index 283e56c48..a5c4fc5d1 100644
--- a/app/views/doorkeeper/applications/show.html.erb
+++ b/app/views/doorkeeper/applications/show.html.erb
@@ -22,7 +22,7 @@
<%= uri %>
- <%= link_to t('doorkeeper.applications.buttons.authorize'), oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code', scope: @application.scopes), class: 'btn btn-success', target: '_blank' %>
+ <%= link_to t('doorkeeper.applications.buttons.authorize'), oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code', scope: @application.scopes), class: 'btn btn-success', target: '_blank', rel: 'noopener' %>
|
<% end %>
diff --git a/app/views/doorkeeper/authorizations/new.html.erb b/app/views/doorkeeper/authorizations/new.html.erb
index 6a7b4c319..eff1d2c52 100644
--- a/app/views/doorkeeper/authorizations/new.html.erb
+++ b/app/views/doorkeeper/authorizations/new.html.erb
@@ -13,7 +13,7 @@
Authorization Required
- <%= raw t('.prompt', client_name: "#{ h @pre_auth.client.name }") %>
+ <%= raw t('.prompt', client_name: "#{h @pre_auth.client.name}") %>
<% if @pre_auth.scopes.count > 0 %>
@@ -94,4 +94,3 @@
-
diff --git a/app/views/doorkeeper/authorizations/show.html.erb b/app/views/doorkeeper/authorizations/show.html.erb
index f4d661019..36650a078 100644
--- a/app/views/doorkeeper/authorizations/show.html.erb
+++ b/app/views/doorkeeper/authorizations/show.html.erb
@@ -1,5 +1,5 @@
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) %>
-
-
- 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") %> |
-
-
- <% regradeOptions = @submissions.collect{ |s|
- ["#{s.user.andrewID} - v#{s.version}", s.id]
- } %>
- Select Previous Submissions to Regrade: |
- <%= select(:regrade,:submission_id,regradeOptions, {},{:multiple=>"multiple"})
- %> |
-
-
- <%= submit_tag("Go Go Gadget Autograde") %> |
-
-
-
-
-