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



155
156
157
158
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 155

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

#account_details_itemsObject



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



134
135
136
137
138
# File 'platypus/tmp/set/gem-defaults/mod014-account/abstract/account_holder.rb', line 134

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

#default_board_tabObject



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

Returns:

  • (Boolean)


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

def 
  card.account?
end

#view: account_tabObject



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