Module: Card::Set::All::Board::TabViews::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod011-edit/all/board/tab_views.rb
Instance Method Summary collapse
-
#discussion_section ⇒ Object
-
#view: engage_tab ⇒ Object
-
#view: follow_section ⇒ Object
-
#view: guide_tab ⇒ Object
-
#view: history_tab ⇒ Object
-
#view: related_tab ⇒ Object
-
#view: rules_tab ⇒ Object
Instance Method Details
#discussion_section ⇒ Object
46 47 48 49 50 51 |
# File 'platypus/tmp/set/gem-defaults/mod011-edit/all/board/tab_views.rb', line 46 def discussion_section return unless show_discussion? field_nest(:discussion, view: :titled, title: "Discussion", show: :comment_box, hide: [:menu]) end |
#view: engage_tab ⇒ Object
9 10 11 |
# File 'platypus/tmp/set/gem-defaults/mod011-edit/all/board/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_section ⇒ Object
38 39 40 |
# File 'platypus/tmp/set/gem-defaults/mod011-edit/all/board/tab_views.rb', line 38 view :follow_section, wrap: :slot, cache: :never do follow_section end |
#view: guide_tab ⇒ Object
42 43 44 |
# File 'platypus/tmp/set/gem-defaults/mod011-edit/all/board/tab_views.rb', line 42 view :guide_tab, unknown: true do render_guide end |
#view: history_tab ⇒ Object
13 14 15 16 17 |
# File 'platypus/tmp/set/gem-defaults/mod011-edit/all/board/tab_views.rb', line 13 view :history_tab, wrap: :slot do class_up "d0-card-body", "history-slot" voo.hide :act_legend acts_board_layout card.history_acts end |
#view: related_tab ⇒ Object
19 20 21 22 23 24 25 |
# File 'platypus/tmp/set/gem-defaults/mod011-edit/all/board/tab_views.rb', line 19 view :related_tab do board_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_tab ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'platypus/tmp/set/gem-defaults/mod011-edit/all/board/tab_views.rb', line 27 view :rules_tab, unknown: true do set_list_type = :related class_up "card-slot", "flex-column" wrap do [ set_select(set_list_type), # set_alert(set_list_type) ] end end |