Module: Card::Set::Type::SearchType::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod035-card-mod-search/type/search_type.rb,
card/tmpsets/set/mod036-card-mod-search/type/search_type.rb

Instance Method Summary collapse

Instance Method Details



79
80
81
82
83
84
85
86
# File 'card/tmpsets/set/mod035-card-mod-search/type/search_type.rb', line 79

def rss_link_tag
  path_opts = { format: :rss }
  Array(search_params[:vars]).compact.each { |k, v| opts["_#{k}"] = v }
  tag "link", rel: "alternate",
              type: "application/rss+xml",
              title: "RSS",
              href: path(path_opts)
end

#view: barObject



63
64
65
66
# File 'card/tmpsets/set/mod035-card-mod-search/type/search_type.rb', line 63

view :bar do
  voo.hide :one_line_content
  super()
end

#view: coreObject



59
60
61
# File 'card/tmpsets/set/mod035-card-mod-search/type/search_type.rb', line 59

view :core do
  _render search_result_view
end

#view: one_line_contentObject



68
69
70
71
72
73
74
75
76
77
# File 'card/tmpsets/set/mod035-card-mod-search/type/search_type.rb', line 68

view :one_line_content, cache: :never do
  if depth > max_depth
    "..."
  else
    search_params[:limit] = closed_limit
    _render_core hide: "paging", items: { view: :link }
    # TODO: if item is queryified to be "name", then that should work.
    # otherwise use link
  end
end