Module: Card::Set::Abstract::SearchViews::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod009-search/abstract/search_views.rb

Instance Method Summary collapse

Instance Method Details



57
58
59
60
61
62
63
64
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/search_views.rb', line 57

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



42
43
44
45
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/search_views.rb', line 42

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

#view: coreObject



38
39
40
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/search_views.rb', line 38

view :core do
  _render search_result_view
end

#view: one_line_contentObject



47
48
49
50
51
52
53
54
55
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/search_views.rb', line 47

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