Module: Card::Set::All::Html::Head::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod004-format/all/html/head.rb

Instance Method Summary collapse

Instance Method Details

#view: favicon_tagObject



48
49
50
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html/head.rb', line 48

view :favicon_tag, unknown: true, perms: :none do
  nest :favicon, view: :link_tag
end

#view: headObject



38
39
40
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html/head.rb', line 38

view :head, unknown: true, perms: :none, cache: :always do
  basket[:head_views].map { |viewname| render viewname }.flatten.compact.join "\n"
end

#view: meta_tagsObject



42
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html/head.rb', line 42

view :meta_tags, unknown: true, perms: :none, template: :haml

#view: page_title_tagObject



44
45
46
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html/head.rb', line 44

view :page_title_tag, unknown: true, perms: :none do
  (:title) { render :page_title }
end

TODO: move to rss mod



61
62
63
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html/head.rb', line 61

view :rss_links, unknown: true, perms: :none do
  render :rss_link_tag if rss_link?
end

#view: stylesheet_tagsObject

these should render a view of the rule card it would then be safe to cache if combined with param handling (but note that machine clearing would need to reset card cache…)



68
69
70
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html/head.rb', line 68

view :stylesheet_tags, cache: :never, unknown: true, perms: :none do
  [nest(:style_mods, view: :remote_style_tags), main_stylesheet_tag]
end

#view: universal_edit_buttonObject

TODO: move to mod



53
54
55
56
57
58
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html/head.rb', line 53

view :universal_edit_button, unknown: :blank, denial: :blank, perms: :update do
  return if card.new?

  tag "link", rel: "alternate", type: "application/x-wiki",
              title: "Edit this page!", href: path(view: :edit)
end