@my_ssh_keys = AuthorizedKey.where(key_type: 'SSH', owner_uuid: @object.uuid)
end
- def manage_account
- repositories
- virtual_machines
- ssh_keys
- end
-
def add_ssh_key_popup
respond_to do |format|
format.html
<% end %>
</li>
- <li role="menuitem">
- <%= link_to manage_account_user_path(current_user), role: 'menu-item' do %>
- <i class="fa fa-lg fa-key fa-fw"></i> Manage account
- <% end %>
- </li>
-
<% if Rails.configuration.user_profile_form_fields %>
<li role="menuitem"><a href="/users/<%=current_user.uuid%>/profile" role="menuitem"><i class="fa fa-lg fa-user fa-fw"></i> Manage profile</a></li>
<% end %>
+++ /dev/null
-<div class="col-sm-6">
- <div class="panel-group" id="arv-adv-accordion">
- <div class="panel panel-default">
- <%= render partial: "virtual_machines" %>
- </div>
- <div class="panel panel-default">
- <%= render partial: "repositories" %>
- </div>
- </div>
-</div>
-<div class="col-sm-6">
- <div class="panel-group" id="arv-adv-accordion">
- <div class="panel panel-default">
- <%= render partial: "ssh_keys" %>
- </div>
- <div class="panel panel-default">
- <%= render partial: "current_token" %>
- </div>
- </div>
- <div id="add-ssh-key-modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>
- <%= render partial: "add_repository_modal" %>
-</div>
+++ /dev/null
-<%= render :partial => 'manage_account' %>
get 'setup_popup', :on => :member
get 'profile', :on => :member
post 'request_shell_access', :on => :member
- get 'manage_account', :on => :member
get 'virtual_machines', :on => :member
get 'repositories', :on => :member
get 'ssh_keys', :on => :member
assert_selector "a[href=\"/users/#{user['uuid']}/repositories\"]", text: 'Repositories'
assert_selector "a[href=\"/current_token\"]", text: 'Current token'
assert_selector "a[href=\"/users/#{user['uuid']}/ssh_keys\"]", text: 'SSH keys'
- assert_selector "a[href=\"/users/#{user['uuid']}/manage_account\"]", text: 'Manage account'
if profile_config
assert_selector "a[href=\"/users/#{user['uuid']}/profile\"]", text: 'Manage profile'
assert page.has_no_link?('Repositories'), 'Found link - Repositories'
assert page.has_no_link?('Current token'), 'Found link - Current token'
assert page.has_no_link?('SSH keys'), 'Found link - SSH keys'
- assert page.has_no_link?('Manage account'), 'Found link - Manage account'
assert page.has_no_link?('Manage profile'), 'Found link - Manage profile'
end
assert page.has_link?('Log out'), 'No link - Log out'
require 'integration_helper'
-class UserManageAccountTest < ActionDispatch::IntegrationTest
+class UserSettingsMenuTest < ActionDispatch::IntegrationTest
setup do
need_javascript
end