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
-
#view: closed_account ⇒ Object
Instance Method Details
#account_content_items ⇒ Object
173 174 175 176 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 173 def account_content_items [["Created", :created], ["Edited", :edited]] end |
#account_details_items ⇒ Object
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 156 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] } } }], ["Close Account", :account, { path: { view: :closure } }] ] end |
#account_formgroups ⇒ Object
150 151 152 153 154 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 150 def account_formgroups Auth.as_bot do subformat(card.account)._render :content_formgroups, structure: true end end |
#default_board_tab ⇒ Object
135 136 137 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 135 def default_board_tab card.current_account? ? :account_tab : super end |
#show_account_tab? ⇒ Boolean
146 147 148 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 146 def show_account_tab? card.account? end |
#view: account_tab ⇒ Object
139 140 141 142 143 144 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 139 view :account_tab do board_pill_sections "Account" do [["Settings", account_details_items], ["Content", account_content_items]] end end |
#view: closed_account ⇒ Object
133 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 133 view :closed_account, template: :haml |