Module: Card::Set::Abstract::Accountable::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb

Instance Method Summary collapse

Instance Method Details

#account_content_itemsObject



56
57
58
59
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb', line 56

def 
  [["Created", :created],
   ["Edited", :edited]]
end

#account_details_itemsObject



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb', line 42

def 
  [
    ["Email and Password", :account,
     { path: { slot: { hide: %i[help_link bridge_link] } } }],
    ["Roles", :roles,
     { path:  { view: :content } }],
    ["Notifications", :follow],
    ["API", :account,
     { path: { view: :api_key,
               items: { view: :content },
               slot: { hide: %i[help_link bridge_link] } } }]
  ]
end

#account_formgroupsObject



36
37
38
39
40
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb', line 36

def 
  Auth.as_bot do
    subformat(card.)._render :content_formgroups, structure: true
  end
end

#default_bridge_tabObject



21
22
23
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb', line 21

def default_bridge_tab
  card.current_account? ? :account_tab : super
end

#show_account_tab?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb', line 32

def 
  card..real?
end

#view: account_tabObject



25
26
27
28
29
30
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb', line 25

view :account_tab do
  bridge_pill_sections "Account" do
    [["Settings", ],
     ["Content", ]]
  end
end