Sha256: eafc0fa0b72576033fd954f01852fbc9ae2fe690cf70879bf2870ea50647b928
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
# frozen_string_literal: true module PagesCore module Admin module AdminHelper include PagesCore::Admin::ContentTabsHelper 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
3 entries across 3 versions & 1 rubygems