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
-
#account_content_items ⇒ Object
-
#account_details_items ⇒ Object
-
#account_formgroups ⇒ Object
-
#default_bridge_tab ⇒ Object
-
#show_account_tab? ⇒ Boolean
-
#view: account_tab ⇒ Object
Instance Method Details
#account_content_items ⇒ Object
56 57 58 59 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb', line 56 def account_content_items [["Created", :created], ["Edited", :edited]] end |
#account_details_items ⇒ Object
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 account_details_items [ ["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_formgroups ⇒ Object
36 37 38 39 40 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb', line 36 def account_formgroups Auth.as_bot do subformat(card.account)._render :content_formgroups, structure: true end end |
#default_bridge_tab ⇒ Object
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
32 33 34 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/accountable.rb', line 32 def show_account_tab? card.account.real? end |
#view: account_tab ⇒ Object
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", account_details_items], ["Content", account_content_items]] end end |