Class: AWS::Admin

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/aws-auth/admin.rb

Constant Summary collapse

POST =
%{if(!this.title||confirm(this.title+'?')){var f = document.createElement('form'); this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href; f.submit();}return false;}
[["users","/control/users",true],["profile","/control/profile"],["logout","/control/logout"]]
@@home_page =
"/control/buckets"

Class Method Summary collapse

Class Method Details

.add_tab(name, path, admin_only = false) ⇒ Object



13
14
15
16
17
# File 'lib/aws-auth/admin.rb', line 13

def self.add_tab(name, path, admin_only=false)
  t = [name,path]
  t << admin_only unless admin_only == false
  @@navigation_tabs = [t] + @@navigation_tabs
end

.home_pageObject



23
24
25
# File 'lib/aws-auth/admin.rb', line 23

def self.home_page
  @@home_page
end

.home_page=(val) ⇒ Object



27
28
29
# File 'lib/aws-auth/admin.rb', line 27

def self.home_page=(val)
  @@home_page = val
end

.tabsObject



19
20
21
# File 'lib/aws-auth/admin.rb', line 19

def self.tabs
  @@navigation_tabs
end