houdini/app/views/layouts/_javascripts.html.erb
Bradley M. Kuhn 22adb4d5fd Relicense all .erb files under new project license.
The primary license of the project is changing to:
  AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later

with some specific files to be licensed under the one of two licenses:
   CC0-1.0
   LGPL-3.0-or-later

This commit is one of the many steps to relicense the entire codebase.

Documentation granting permission for this relicensing (from all past
contributors who hold copyrights) is on file with Software Freedom
Conservancy, Inc.
2018-03-25 15:10:40 -04:00

38 lines
1 KiB
Text

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<!-- Load up polyfill service -->
<script src="https://cdn.polyfill.io/v1/polyfill.min.js"></script>
<%= render 'layouts/app_data' %>
<% if Settings.payment_provider.stripe_proprietary_v2_js %>
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
<% else %>
<%= IncludeAsset.js "/client/js/stripe_wrapper/page.js" %>
<% end %>
<script>
Stripe.setPublishableKey("<%= Settings.payment_provider.stripe_public_key %>");
window._csrf = "<%= form_authenticity_token %>";
</script>
<%= IncludeAsset.js "/client/js/page.js" %>
<%= IncludeAsset.js '/client/js/i18n.js' %>
<script>
I18n.defaultLocale = "<%= I18n.default_locale %>"
I18n.locale = "<%= I18n.locale %>"
</script>
<%= yield :javascripts %>
<span data-parsley-namespace='parsley-'></span>
<% if current_role?([:nonprofit_associate, :nonprofit_admin, :super_admin]) && yield(:hide_nav_beacon) != 'true' %>
<%= render 'layouts/nav_beacon' %>
<% end %>