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

Instance Method Details

#account_content_itemsObject



173
174
175
176
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 173

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

#account_details_itemsObject



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 
  [
    ["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_formgroupsObject



150
151
152
153
154
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 150

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

#default_board_tabObject



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

Returns:

  • (Boolean)


146
147
148
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 146

def 
  card.account?
end

#view: account_tabObject



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", ],
     ["Content", ]]
  end
end

#view: closed_accountObject



133
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 133

view :closed_account, template: :haml