Config: Initialize web-assets v2 forms component compilation for survey templates temporarily #96859

Closed
Márton Lente wants to merge 2 commits from survey-web-assets-v2-component-forms into survey

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
4 changed files with 14 additions and 1 deletions
Showing only changes of commit a860142405 - Show all commits

View File

@ -285,6 +285,11 @@ PIPELINE = {
'output_filename': 'css/main.css', 'output_filename': 'css/main.css',
'extra_context': {'media': 'screen,projection'}, 'extra_context': {'media': 'screen,projection'},
}, },
'main-web-assets-v2-component-forms': {
'source_filenames': ('blender_fund_main/styles/main-web-assets-v2-component-forms.sass',),
'output_filename': 'css/main-web-assets-v2-component-forms.css',
'extra_context': {'media': 'screen,projection'},
},
'looper_admin': { 'looper_admin': {
'source_filenames': ('looper/styles/*.sass',), 'source_filenames': ('looper/styles/*.sass',),
'output_filename': 'css/looper_admin.css', 'output_filename': 'css/looper_admin.css',

View File

@ -0,0 +1,2 @@
$font-path: '../../assets/fonts'
@import '../../../../assets_shared_v2_component_forms/src/styles/main.sass'

View File

@ -1,3 +1,7 @@
{% block stylesheet_custom %}
{% stylesheet 'main-web-assets-v2-component-forms' %}
{% endblock stylesheet_custom %}
<h1>Survey</h1> <h1>Survey</h1>
Hi {{ user.username }}! Hi {{ user.username }}!

View File

@ -35,7 +35,9 @@
<script defer data-domain="fund.blender.org" src="https://analytics.blender.org/js/script.js"></script> <script defer data-domain="fund.blender.org" src="https://analytics.blender.org/js/script.js"></script>
{% stylesheet 'main' %} {% block stylesheet_custom %}
{% stylesheet 'main' %}
{% endblock stylesheet_custom %}
{% if settings.GOOGLE_ANALYTICS_TRACKING_ID %} {% if settings.GOOGLE_ANALYTICS_TRACKING_ID %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ settings.GOOGLE_ANALYTICS_TRACKING_ID }}"></script> <script async src="https://www.googletagmanager.com/gtag/js?id={{ settings.GOOGLE_ANALYTICS_TRACKING_ID }}"></script>