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
-
#view: favicon_tag ⇒ Object
-
#view: head ⇒ Object
-
#view: meta_tags ⇒ Object
-
#view: page_title_tag ⇒ Object
-
#view: rss_links ⇒ Object
TODO: move to rss mod.
-
#view: stylesheet_tags ⇒ Object
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…).
-
#view: universal_edit_button ⇒ Object
TODO: move to mod.
Instance Method Details
#view: favicon_tag ⇒ Object
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: head ⇒ Object
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_tags ⇒ Object
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_tag ⇒ Object
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 content_tag(:title) { render :page_title } end |
#view: rss_links ⇒ Object
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_tags ⇒ Object
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_button ⇒ Object
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 |