Sha256: 2d36890e1c04f49e60ba979381ac39f73de1bdcec930d5a2ce5830afb6170332
Contents?: true
Size: 946 Bytes
Versions: 10
Compression:
Stored size: 946 Bytes
Contents
def account fetch :account, new: {} end def default_account_status "active" end def current_account? id && Auth.current_id == id end format :html do def default_bridge_tab card.current_account? ? :account_tab : super end view :account_tab do bridge_pill_sections "Account" do [["Settings", account_details_items], ["Content", account_content_items]] end end def show_account_tab? card.account.real? end def account_formgroups Auth.as_bot do subformat(card.account)._render :content_formgroups, structure: true end end def account_details_items [ ["Email and Password", :account, { path: { slot: { hide: %i[help_link bridge_link] } } }], ["Roles", :roles, { path: { view: :content_with_edit_button } }], ["Notifications", :follow] ] end def account_content_items [["Created", :created], ["Edited", :edited]] end end
Version data entries
10 entries across 10 versions & 2 rubygems