Allow iD and Potlatch 2 to load assets outside the asset pipeline
This commit is contained in:
parent
67c314388a
commit
d8a504d8db
3 changed files with 4 additions and 1 deletions
|
@ -32,6 +32,8 @@
|
|||
flashvars.font_library = "<%= asset_path "potlatch2/FontLibrary.swf" %>";
|
||||
flashvars.locale = "<%= Potlatch2::LOCALES[locale] %>";
|
||||
flashvars.locale_paths = "<%= Potlatch2::LOCALES[locale] %>=<%= asset_path("potlatch2/locales/#{Potlatch2::LOCALES[locale]}.swf") %>";
|
||||
flashvars.intro_image = "<%= asset_path "help/introduction.jpg" %>";
|
||||
flashvars.intro_video = "<%= asset_path "help/introduction.mp4" %>";
|
||||
<% if params['gpx'] %>
|
||||
flashvars.gpx = '<%= h(params['gpx']) %>';
|
||||
<% end %>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
var id = iD()
|
||||
.embed(true)
|
||||
.assetPath("/assets/iD/") <%# Can't use asset_path('iD/') in production. %>
|
||||
.assetPath("/iD/") <%# Can't use asset_path('iD/') in production. %>
|
||||
.assetMap(<%= assets("iD").to_json.html_safe %>)
|
||||
.locale("<%= locale %>", "<%= asset_path("iD/locales/#{locale}.json") %>")
|
||||
.preauth({
|
||||
|
|
1
public/iD
Symbolic link
1
public/iD
Symbolic link
|
@ -0,0 +1 @@
|
|||
../vendor/assets/iD/iD
|
Loading…
Add table
Add a link
Reference in a new issue