Add /keep_disks page to Admin menu.
authorTom Clegg <tom@curoverse.com>
Fri, 24 Jan 2014 18:17:21 +0000 (10:17 -0800)
committerTom Clegg <tom@curoverse.com>
Fri, 24 Jan 2014 18:17:21 +0000 (10:17 -0800)
apps/workbench/app/assets/javascripts/keep_disks.js.coffee [new file with mode: 0644]
apps/workbench/app/assets/stylesheets/keep_disks.css.scss [new file with mode: 0644]
apps/workbench/app/controllers/keep_disks_controller.rb [new file with mode: 0644]
apps/workbench/app/helpers/keep_disks_helper.rb [new file with mode: 0644]
apps/workbench/app/models/keep_disk.rb [new file with mode: 0644]
apps/workbench/app/views/layouts/application.html.erb
apps/workbench/config/routes.rb
apps/workbench/test/functional/keep_disks_controller_test.rb [new file with mode: 0644]
apps/workbench/test/unit/helpers/keep_disks_helper_test.rb [new file with mode: 0644]
apps/workbench/test/unit/keep_disk_test.rb [new file with mode: 0644]

diff --git a/apps/workbench/app/assets/javascripts/keep_disks.js.coffee b/apps/workbench/app/assets/javascripts/keep_disks.js.coffee
new file mode 100644 (file)
index 0000000..7615679
--- /dev/null
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
diff --git a/apps/workbench/app/assets/stylesheets/keep_disks.css.scss b/apps/workbench/app/assets/stylesheets/keep_disks.css.scss
new file mode 100644 (file)
index 0000000..1f7780b
--- /dev/null
@@ -0,0 +1,3 @@
+// Place all the styles related to the KeepDisks controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/apps/workbench/app/controllers/keep_disks_controller.rb b/apps/workbench/app/controllers/keep_disks_controller.rb
new file mode 100644 (file)
index 0000000..482a2d3
--- /dev/null
@@ -0,0 +1,2 @@
+class KeepDisksController < ApplicationController
+end
diff --git a/apps/workbench/app/helpers/keep_disks_helper.rb b/apps/workbench/app/helpers/keep_disks_helper.rb
new file mode 100644 (file)
index 0000000..9cf6b4a
--- /dev/null
@@ -0,0 +1,2 @@
+module KeepDisksHelper
+end
diff --git a/apps/workbench/app/models/keep_disk.rb b/apps/workbench/app/models/keep_disk.rb
new file mode 100644 (file)
index 0000000..fd1c06d
--- /dev/null
@@ -0,0 +1,2 @@
+class KeepDisk < ArvadosBase
+end
index 2c44a261865589cf2eb62a6797c3d082042dbd32..53a39b88d4070c8d69692f3702ced417ca6ef621 100644 (file)
@@ -88,6 +88,7 @@
                 <li><%= link_to 'Users', users_path %></li>
                 <li><%= link_to 'Groups', groups_path %></li>
                 <li><%= link_to 'Nodes', nodes_path %></li>
+                <li><%= link_to 'Keep disks', keep_disks_path %></li>
               </ul>
             </li>
           <% end %>
index cf0dcec8200cc30b160ccb63a38a53f8584b6f34..f2480c6541a758ae4190de78d415aecef0df38a4 100644 (file)
@@ -1,6 +1,7 @@
 ArvadosWorkbench::Application.routes.draw do
   themes_for_rails
 
+  resources :keep_disks
   resources :user_agreements
   post '/user_agreements/sign' => 'user_agreements#sign'
   get '/user_agreements/signatures' => 'user_agreements#signatures'
diff --git a/apps/workbench/test/functional/keep_disks_controller_test.rb b/apps/workbench/test/functional/keep_disks_controller_test.rb
new file mode 100644 (file)
index 0000000..d6f2954
--- /dev/null
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class KeepDisksControllerTest < ActionController::TestCase
+end
diff --git a/apps/workbench/test/unit/helpers/keep_disks_helper_test.rb b/apps/workbench/test/unit/helpers/keep_disks_helper_test.rb
new file mode 100644 (file)
index 0000000..a3b064e
--- /dev/null
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class KeepDisksHelperTest < ActionView::TestCase
+end
diff --git a/apps/workbench/test/unit/keep_disk_test.rb b/apps/workbench/test/unit/keep_disk_test.rb
new file mode 100644 (file)
index 0000000..42ab63b
--- /dev/null
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class KeepDiskTest < ActiveSupport::TestCase
+end