From: Tomas Sedovic <[email protected]>
---
.../views/admin/provider_accounts/_properties.haml | 8 ++++++++
src/config/routes.rb | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/app/views/admin/provider_accounts/_properties.haml
b/src/app/views/admin/provider_accounts/_properties.haml
index 6371968..a3e127d 100644
--- a/src/app/views/admin/provider_accounts/_properties.haml
+++ b/src/app/views/admin/provider_accounts/_properties.haml
@@ -1,5 +1,13 @@
%h3
Properties for
= @account.name
+%p
+ %label
+ Running instances quota:
+ = @account.quota.maximum_running_instances or 'unlimited'
+%p
+ %label
+ Account ID:
+ = @account.account_number
= link_to "Edit", edit_admin_provider_account_path(@account), { :class =>
'button' }
= link_to "Test", admin_provider_account_path(@account, {:test_account =>
true}), { :class => 'button' }
diff --git a/src/config/routes.rb b/src/config/routes.rb
index bce6547..b513d80 100644
--- a/src/config/routes.rb
+++ b/src/config/routes.rb
@@ -46,7 +46,7 @@ ActionController::Routing::Routes.draw do |map|
map.connect '/set_layout', :controller => 'application', :action =>
'set_layout'
map.namespace 'admin' do |r|
- r.resources :hardware_profiles, :pool_families, :provider_accounts, :realms
+ r.resources :hardware_profiles, :pool_families, :realms
r.resources :providers, :collection => { :multi_destroy => :delete }
r.resources :users, :collection => { :multi_destroy => :delete }
r.resources :provider_accounts, :collection => { :multi_destroy => :delete
}
--
1.7.3.4
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel