Module: Card::Set::All::RichHtml::Show::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
tmpsets/set/mod021-standard/all/rich_html/show.rb

Instance Method Summary collapse

Instance Method Details

#head_contentObject



41
42
43
# File 'tmpsets/set/mod021-standard/all/rich_html/show.rb', line 41

def head_content
  nest card.rule_card(:head), view: :head_content
end

#show(view, args) ⇒ Object



9
10
11
12
# File 'tmpsets/set/mod021-standard/all/rich_html/show.rb', line 9

def show view, args
  content = send show_method, view, args
  show_full_page? ? wrap_with_html_page(content) : content
end

#show_full_page?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'tmpsets/set/mod021-standard/all/rich_html/show.rb', line 25

def show_full_page?
  !Env.ajax?
end

#show_methodObject



14
15
16
# File 'tmpsets/set/mod021-standard/all/rich_html/show.rb', line 14

def show_method
  "show_#{show_layout? ? :with : :without}_page_layout"
end

#show_without_page_layout(view, args) ⇒ Object



18
19
20
21
22
23
# File 'tmpsets/set/mod021-standard/all/rich_html/show.rb', line 18

def show_without_page_layout view, args
  @main = true if params[:is_main] || args[:main]
  args.delete(:layout)
  view ||= args[:home_view] || :open # default_nest_view
  render! view, args
end