Sha256: f4955f685d03a1b51b14209f650734ec0a9ea50ec6c4916b845c56d93d6d18ff
Contents?: true
Size: 812 Bytes
Versions: 4
Compression:
Stored size: 812 Bytes
Contents
module Scrivito class LayoutTags < Struct.new(:view) def page_config(obj) if view.scrivito_user page_config = PageConfig.new({ obj: obj, editing_context: editing_context, lookup_context: view.lookup_context, }).to_json view.content_tag(:div, '', 'data-scrivito-private-page-config' => page_config) end end def editing_auth_warning view.render('scrivito/editing_auth_warning') unless Configuration.editing_auth_callback end def generator_meta_tag content = 'Scrivito by Infopark Group GmbH (scrivito.com)' content << "; Version #{GemInfo.version}" if view.scrivito_user view.tag(:meta, name: 'generator', content: content) end private def editing_context EditingContextMiddleware.from_request(view.request) end end end
Version data entries
4 entries across 4 versions & 1 rubygems