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

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod011-card-mod-account/abstract/accountable.rb,
card/tmpsets/set/mod010-card-mod-account/abstract/accountable.rb

Instance Method Summary collapse

Instance Method Details

#account_content_itemsObject



52
53
54
55
# File 'card/tmpsets/set/mod011-card-mod-account/abstract/accountable.rb', line 52

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

#account_details_itemsObject



42
43
44
45
46
47
48
49
50
# File 'card/tmpsets/set/mod011-card-mod-account/abstract/accountable.rb', line 42

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

#account_formgroupsObject



36
37
38
39
40
# File 'card/tmpsets/set/mod011-card-mod-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 'card/tmpsets/set/mod011-card-mod-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 'card/tmpsets/set/mod011-card-mod-account/abstract/accountable.rb', line 32

def 
  card..real?
end

#view: account_tabObject



25
26
27
28
29
30
# File 'card/tmpsets/set/mod011-card-mod-account/abstract/accountable.rb', line 25

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