Module: Card::Set::All::Bridge::TabViews::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod012-card-mod-edit/all/bridge/tab_views.rb,
card/tmpsets/set/mod011-card-mod-edit/all/bridge/tab_views.rb

Instance Method Summary collapse

Instance Method Details

#discussion_sectionObject



42
43
44
45
46
47
# File 'card/tmpsets/set/mod012-card-mod-edit/all/bridge/tab_views.rb', line 42

def discussion_section
  return unless show_discussion?

  field_nest(:discussion, view: :titled, title: "Discussion", show: :comment_box,
                          hide: [:menu])
end

#view: engage_tabObject



9
10
11
# File 'card/tmpsets/set/mod012-card-mod-edit/all/bridge/tab_views.rb', line 9

view :engage_tab, wrap: { div: { class: "m-3 mt-4 _engage-tab" } }, cache: :never do
  [render_follow_section, discussion_section].compact
end

#view: follow_sectionObject



34
35
36
# File 'card/tmpsets/set/mod012-card-mod-edit/all/bridge/tab_views.rb', line 34

view :follow_section, wrap: :slot, cache: :never do
  follow_section
end

#view: guide_tabObject



38
39
40
# File 'card/tmpsets/set/mod012-card-mod-edit/all/bridge/tab_views.rb', line 38

view :guide_tab, unknown: true do
  render_guide
end

#view: history_tabObject



13
14
15
16
17
# File 'card/tmpsets/set/mod012-card-mod-edit/all/bridge/tab_views.rb', line 13

view :history_tab, wrap: :slot do
  class_up "d0-card-body",  "history-slot"
  voo.hide :act_legend
  acts_bridge_layout card.history_acts
end


19
20
21
22
23
24
25
# File 'card/tmpsets/set/mod012-card-mod-edit/all/bridge/tab_views.rb', line 19

view :related_tab do
  bridge_pill_sections "Related" do
    %w[name content type].map do |section_name|
      ["by #{section_name}", send("related_by_#{section_name}_items")]
    end
  end
end

#view: rules_tabObject



27
28
29
30
31
32
# File 'card/tmpsets/set/mod012-card-mod-edit/all/bridge/tab_views.rb', line 27

view :rules_tab, unknown: true do
  class_up "card-slot", "flex-column"
  wrap do
    nest current_set_card, view: :bridge_rules_tab
  end
end