From d5e90c0d8786d310aa7cbfe32d0c5fe349e0f641 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 11 Feb 2015 19:18:13 +0000 Subject: [PATCH] Add asset wrappers for iD --- app/assets/javascripts/id.js | 1 + app/assets/stylesheets/id.css | 3 +++ app/views/site/id.html.erb | 4 ++-- config/initializers/assets.rb | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 app/assets/javascripts/id.js create mode 100644 app/assets/stylesheets/id.css diff --git a/app/assets/javascripts/id.js b/app/assets/javascripts/id.js new file mode 100644 index 000000000..185717b32 --- /dev/null +++ b/app/assets/javascripts/id.js @@ -0,0 +1 @@ +//= require iD diff --git a/app/assets/stylesheets/id.css b/app/assets/stylesheets/id.css new file mode 100644 index 000000000..1e85f055d --- /dev/null +++ b/app/assets/stylesheets/id.css @@ -0,0 +1,3 @@ +/* + *= require iD + */ diff --git a/app/views/site/id.html.erb b/app/views/site/id.html.erb index 38f2e0d3d..3bb20f29d 100644 --- a/app/views/site/id.html.erb +++ b/app/views/site/id.html.erb @@ -2,9 +2,9 @@ - <%= stylesheet_link_tag 'iD' %> + <%= stylesheet_link_tag 'id' %> - <%= javascript_include_tag 'iD' %> + <%= javascript_include_tag 'id' %> diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index df86f2b9d..21d9312a4 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -13,6 +13,7 @@ Rails.application.config.assets.precompile += %w( user.js diary_entry.js ) Rails.application.config.assets.precompile += %w( large-ltr.css small-ltr.css print-ltr.css ) Rails.application.config.assets.precompile += %w( large-rtl.css small-rtl.css print-rtl.css ) Rails.application.config.assets.precompile += %w( leaflet-all.css leaflet.ie.css ) +Rails.application.config.assets.precompile += %w( id.js id.css ) Rails.application.config.assets.precompile += %w( embed.js embed.css ) Rails.application.config.assets.precompile += %w( html5shiv.js ) Rails.application.config.assets.precompile += %w( images/marker-*.png img/*-handle.png ) @@ -22,7 +23,6 @@ Rails.application.config.assets.precompile += %w( potlatch2/assets.zip ) Rails.application.config.assets.precompile += %w( potlatch2/FontLibrary.swf ) Rails.application.config.assets.precompile += %w( potlatch2/locales/*.swf ) Rails.application.config.assets.precompile += %w( help/introduction.* ) -Rails.application.config.assets.precompile += %w( iD.js iD.css ) Rails.application.config.assets.precompile += %w( iD/img/*.svg iD/img/*.png iD/img/*.gif ) Rails.application.config.assets.precompile += %w( iD/img/pattern/*.png ) Rails.application.config.assets.precompile += %w( iD/locales/*.json ) -- 2.39.5