Sha256: 47ec5221e85569ed39cda4bc238a6c2ca47a6eda853a68f7852e4db4df86e6c2
Contents?: true
Size: 1.23 KB
Versions: 4
Compression:
Stored size: 1.23 KB
Contents
# frozen_string_literal: true module PagesCore module Admin module AdminHelper include PagesCore::Admin::ContentTabsHelper include PagesCore::Admin::DeprecatedAdminHelper include PagesCore::Admin::DateRangeHelper include PagesCore::Admin::ImageUploadsHelper include PagesCore::Admin::LocalesHelper include PagesCore::Admin::PageJsonHelper include PagesCore::Admin::LabelledFieldHelper include PagesCore::Admin::TagEditorHelper def rich_text_area_tag(name, content = nil, options = {}) react_component("RichTextArea", options.merge(id: sanitize_to_id(name), name: name, value: content)) end def locale_links(&block) return unless PagesCore.config.localizations? safe_join( PagesCore.config.locales.map do |locale, name| link_to(name, block.call(locale), class: ("current" if locale == params[:locale].to_sym)) end ) end def month_name(month) %w[January February March April May June July August September October November December][month - 1] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems