Sha256: 5fda3c7f536f126700cf09db96585c0249bf5ccc0959b09738bcc289794590a2

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 KB

Contents

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

  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 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, 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

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

  view :guide_tab, unknown: true do
    render_guide
  end

  def discussion_section
    return unless show_discussion?

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
card-mod-edit-0.18.1 set/all/board/tab_views.rb
card-mod-edit-0.18.0 set/all/board/tab_views.rb
card-mod-edit-0.17.0 set/all/board/tab_views.rb
card-mod-edit-0.16.0 set/all/board/tab_views.rb
card-mod-edit-0.15.6 set/all/board/tab_views.rb
card-mod-edit-0.15.5 set/all/board/tab_views.rb