Module: Card::Set::Abstract::AccountHolder::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb
Instance Method Summary collapse
-
#account_content_items ⇒ Object
-
#account_details_items ⇒ Object
-
#account_formgroups ⇒ Object
-
#default_board_tab ⇒ Object
-
#show_account_tab? ⇒ Boolean
-
#view: account_tab ⇒ Object
Instance Method Details
#account_content_items ⇒ Object
155 156 157 158 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 155 def account_content_items [["Created", :created], ["Edited", :edited]] end |
#account_details_items ⇒ Object
140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 140 def account_details_items [ ["Email and Password", :account, { path: { slot: { hide: %i[help_link board_link] } } }], ["Roles", :roles, { path: { view: :content } }], ["Notifications", :follow], # FIXME: this should be added in api_key mod! ["API", :account, { path: { view: :api_key, items: { view: :content }, slot: { hide: %i[help_link board_link] } } }] ] end |
#account_formgroups ⇒ Object
134 135 136 137 138 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 134 def account_formgroups Auth.as_bot do subformat(card.account)._render :content_formgroups, structure: true end end |
#default_board_tab ⇒ Object
119 120 121 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 119 def default_board_tab card.current_account? ? :account_tab : super end |
#show_account_tab? ⇒ Boolean
130 131 132 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 130 def show_account_tab? card.account? end |
#view: account_tab ⇒ Object
123 124 125 126 127 128 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 123 view :account_tab do board_pill_sections "Account" do [["Settings", account_details_items], ["Content", account_content_items]] end end |