1 class UsersController < ApplicationController
2 skip_before_filter :find_object_by_uuid, :only => :welcome
6 redirect_to home_user_path(current_user.uuid)
8 redirect_to $arvados_api_client.arvados_login_url(return_to: request.url)
13 @my_ssh_keys = AuthorizedKey.where(authorized_user_uuid: current_user.uuid)
14 @my_vm_perms = Link.where(tail_uuid: current_user.uuid, head_kind: 'arvados#virtual_machine', link_class: 'permission', name: 'can_login')
15 @my_repo_perms = Link.where(tail_uuid: current_user.uuid, head_kind: 'arvados#repository', link_class: 'permission', name: 'can_write')
18 order('created_at desc').
19 where(created_by: current_user.uuid)
21 # A Tutorial is a Link which has link_class "resources" and name
22 # "wants", and is owned by the Tutorials Group (i.e., named
23 # "Arvados Tutorials" and owned by the system user).
24 @tutorial_group = Group.where(owner_uuid: User.system.uuid,
25 name: 'Arvados Tutorials').first
27 @tutorial_links = Link.where(tail_uuid: @tutorial_group.uuid,
28 link_class: 'resources',
33 @tutorial_complete = {
34 'Run a job' => @my_last_job