about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-03 16:52:45 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-03 16:52:45 +0200
commita488b05726b2e93b5f66e93ef700a6bc32a3a029 (patch)
tree975a393393c43907baeb94d0c44e898036d30f40 /app
parentfc198a8b4ca6d22eaedee2cfb03e088432dc4b30 (diff)
Cleaning up unused views
Diffstat (limited to 'app')
-rw-r--r--app/views/doorkeeper/applications/_form.html.haml9
-rw-r--r--app/views/doorkeeper/applications/edit.html.haml4
-rw-r--r--app/views/doorkeeper/applications/index.html.haml19
-rw-r--r--app/views/doorkeeper/applications/new.html.haml4
-rw-r--r--app/views/doorkeeper/applications/show.html.haml35
-rw-r--r--app/views/doorkeeper/authorized_applications/index.html.haml16
6 files changed, 0 insertions, 87 deletions
diff --git a/app/views/doorkeeper/applications/_form.html.haml b/app/views/doorkeeper/applications/_form.html.haml
deleted file mode 100644
index 94ba441a8..000000000
--- a/app/views/doorkeeper/applications/_form.html.haml
+++ /dev/null
@@ -1,9 +0,0 @@
-= simple_form_for application, url: doorkeeper_submit_path(application) do |f|
-  = f.error_notification
-
-  .form-inputs
-    = f.input :name
-    = f.input :redirect_uri, hint: t('doorkeeper.applications.help.redirect_uri')
-    = f.input :scopes, hint: t('doorkeeper.applications.help.scopes')
-  .form-actions
-    = f.button :submit, 'Save'
diff --git a/app/views/doorkeeper/applications/edit.html.haml b/app/views/doorkeeper/applications/edit.html.haml
deleted file mode 100644
index 55bbfbab0..000000000
--- a/app/views/doorkeeper/applications/edit.html.haml
+++ /dev/null
@@ -1,4 +0,0 @@
-- content_for :page_title do
-  Edit app
-
-= render 'form', application: @application
diff --git a/app/views/doorkeeper/applications/index.html.haml b/app/views/doorkeeper/applications/index.html.haml
deleted file mode 100644
index 2c88cbd89..000000000
--- a/app/views/doorkeeper/applications/index.html.haml
+++ /dev/null
@@ -1,19 +0,0 @@
-- content_for :page_title do
-  Apps
-
-%p= link_to 'Add new', new_oauth_application_path, class: 'btn btn-success'
-
-%table.table
-  %thead
-    %tr
-      %th App
-      %th Callback URL
-      %th
-      %th
-  %tbody
-    - @applications.each do |application|
-      %tr
-        %td= link_to application.name, oauth_application_path(application)
-        %td= application.redirect_uri
-        %td= link_to 'Edit', edit_oauth_application_path(application)
-        %td= link_to 'Delete', oauth_application_path(application), method: :delete, data: { confirm: 'Are you sure?' }
diff --git a/app/views/doorkeeper/applications/new.html.haml b/app/views/doorkeeper/applications/new.html.haml
deleted file mode 100644
index ad5a66e3a..000000000
--- a/app/views/doorkeeper/applications/new.html.haml
+++ /dev/null
@@ -1,4 +0,0 @@
-- content_for :page_title do
-  New app
-
-= render 'form', application: @application
diff --git a/app/views/doorkeeper/applications/show.html.haml b/app/views/doorkeeper/applications/show.html.haml
deleted file mode 100644
index cc7f4be88..000000000
--- a/app/views/doorkeeper/applications/show.html.haml
+++ /dev/null
@@ -1,35 +0,0 @@
-- content_for :page_title do
-  = @application.name
-
-.row
-  .panel
-    .panel-heading General
-    .panel-row
-      %dt Name
-      %dd= @application.name
-    .panel-row
-      %dt Scopes:
-      %dd= @application.scopes
-
-.panel.panel-full
-  .panel-heading Details
-  .panel-row
-    %dt Client ID:
-    %dd
-      %samp= @application.uid
-  .panel-row
-    %dt Secret:
-    %dd
-      %samp= @application.secret
-
-.panel.panel-full
-  .panel-heading Callback URLs
-  - @application.redirect_uri.split.each do |uri|
-    .panel-row.panel-row-wider
-      %dt
-        %samp= uri
-      %dd= link_to 'Authorize', oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code')
-
-.page-actions
-  = link_to fa_icon('edit'), edit_oauth_application_path(@application), class: 'btn btn-iconized'
-  = link_to fa_icon('trash'), oauth_application_path(@application), method: :delete, class: 'btn btn-iconized', data: { confirm: 'Are you sure?' }
diff --git a/app/views/doorkeeper/authorized_applications/index.html.haml b/app/views/doorkeeper/authorized_applications/index.html.haml
deleted file mode 100644
index a75c43129..000000000
--- a/app/views/doorkeeper/authorized_applications/index.html.haml
+++ /dev/null
@@ -1,16 +0,0 @@
-- content_for :page_title do
-  Authorized apps
-
-%p
-  You can register a new OAuth2 app
-  = link_to 'here', oauth_applications_path
-
-%table.table
-  %thead
-    %tr
-      %th App
-      %th
-  - @applications.each do |application|
-    %tr
-      %td= application.name
-      %td= link_to 'Revoke', oauth_authorized_application_path(application), method: :delete