Sha256: f9cafc98457deb6d9553ea340e7ca193835e67c61b2f6ab97b2f3ae1606b5685
Contents?: true
Size: 1.31 KB
Versions: 7
Compression:
Stored size: 1.31 KB
Contents
module GovukAdminTemplate class Engine < ::Rails::Engine require 'bootstrap-sass' require 'jquery-rails' initializer 'govuk_admin_template.assets.precompile' do |app| app.config.assets.precompile += %w(lte-ie8.js govuk-admin-template.js govuk_admin_template/bootstrap-ie7.css) app.config.assets.precompile += %w(govuk_admin_template/favicon-development.png govuk_admin_template/favicon-integration.png govuk_admin_template/favicon-preview.png govuk_admin_template/favicon.production.png govuk_admin_template/favicon.png) end # User friendly GOV.UK date formats, based on: # https://www.gov.uk/design-principles/style-guide/style-points#style-dates-and-times initializer 'govuk_admin_template.date_formats' do |app| # 1 January 2013 Date::DATE_FORMATS[:govuk_date] = '%-e %B %Y' # 1 Jan 2013 Date::DATE_FORMATS[:govuk_date_short] = '%-e %b %Y' # 1:15pm, 1 January 2013 Time::DATE_FORMATS[:govuk_date] = '%-I:%M%P, %-e %B %Y' # 1:15pm, 1 Jan 2013 Time::DATE_FORMATS[:govuk_date_short] = '%-I:%M%P, %-e %b %Y' # 1:15pm Time::DATE_FORMATS[:govuk_time] = '%-I:%M%P' end initializer "govuk_admin_template.view_helpers" do ActionView::Base.send :include, ViewHelpers end end end
Version data entries
7 entries across 7 versions & 1 rubygems