--- /dev/null
+# 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/
--- /dev/null
+// Place all the styles related to the AuthorizedKeys controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
@objects ||= model_class.all
respond_to do |f|
f.json { render json: @objects }
+ f.html { render }
end
end
--- /dev/null
+class AuthorizedKeysController < ApplicationController
+end
--- /dev/null
+module AuthorizedKeysHelper
+end
--- /dev/null
+class AuthorizedKey < ArvadosBase
+end
--- /dev/null
+<table class="table table-hover">
+ <thead>
+ <tr class="contain-align-left">
+ <th>
+ id
+ </th><th>
+ owner
+ </th><th>
+ name
+ </th><th>
+ key_type
+ </th><th>
+ public_key
+ </th><th>
+ expires_at
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+
+ <% @objects.sort_by { |ak| ak[:created_at] }.reverse.each do |g| %>
+
+ <tr>
+ <td>
+ <%= link_to_if_arvados_object ak %>
+ </td><td>
+ <%= ak.owner %>
+ </td><td>
+ <%= ak.name %>
+ </td><td>
+ <%= ak.key_type %>
+ </td><td>
+ <%= ak.public_key %>
+ </td><td>
+ <%= ak.expires_at %>
+ </td>
+ </tr>
+
+ <% end %>
+ <% if @objects.count == 0 %>
+ <tr>
+ <td colspan="6">
+ (no authorized keys)
+ </td>
+ </tr>
+ <% end %>
+
+ </tbody>
+</table>
<div class="nav-collapse collapse">
<ul class="nav">
<% [
+ [true, 'Keys', authorized_keys_path],
[true, 'Data', collections_path],
[true, 'Groups', groups_path],
[true, 'Pipeline Templates', pipeline_templates_path],
ArvadosWorkbench::Application.routes.draw do
+ resources :authorized_keys
+
+
resources :job_tasks
--- /dev/null
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
--- /dev/null
+require 'test_helper'
+
+class AuthorizedKeysControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
--- /dev/null
+require 'test_helper'
+
+class AuthorizedKeyTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
--- /dev/null
+require 'test_helper'
+
+class AuthorizedKeysHelperTest < ActionView::TestCase
+end