Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
erp5
Commits
2c1debe9
Commit
2c1debe9
authored
Jul 01, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_js_style: no need to load any javascript if no gadget is configured
parent
a1699b92
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
16 deletions
+22
-16
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/dialog_main.zpt
...ateItem/portal_skins/erp5_web_js_style_ui/dialog_main.zpt
+11
-8
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/view_main.zpt
...plateItem/portal_skins/erp5_web_js_style_ui/view_main.zpt
+11
-8
No files found.
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/dialog_main.zpt
View file @
2c1debe9
...
@@ -21,17 +21,20 @@
...
@@ -21,17 +21,20 @@
<base
tal:attributes=
"href python: '%s/' % web_section.absolute_url()"
/>
<base
tal:attributes=
"href python: '%s/' % web_section.absolute_url()"
/>
<meta
name=
"viewport"
content=
"width=device-width,height=device-height,initial-scale=1"
/>
<meta
name=
"viewport"
content=
"width=device-width,height=device-height,initial-scale=1"
/>
<title
tal:content=
"python: here.getTranslatedTitle() or web_section.getTranslatedTitle()"
></title>
<title
tal:content=
"python: here.getTranslatedTitle() or web_section.getTranslatedTitle()"
></title>
<noscript>
<link
rel=
"stylesheet"
tal-attributes=
"href no_style_css_url"
>
</noscript>
<tal:block
tal:condition=
"favicon_url"
>
<tal:block
tal:condition=
"favicon_url"
>
<link
rel=
"icon"
tal:attributes=
"href favicon_url"
/>
<link
rel=
"icon"
tal:attributes=
"href favicon_url"
/>
</tal:block>
</tal:block>
<tal:block
tal:condition=
"python: no_style_gadget_url == ''"
>
<link
rel=
"stylesheet"
tal:attributes=
"href no_style_css_url"
>
</tal:block>
<tal:block
tal:condition=
"python: no_style_gadget_url != ''"
>
<noscript>
<link
rel=
"stylesheet"
tal:attributes=
"href no_style_css_url"
>
</noscript>
<!-- Prevent conflicts with Web Page reference provided by erp5_web_renderjs_ui -->
<!-- Prevent conflicts with Web Page reference provided by erp5_web_renderjs_ui -->
<script
tal:attributes=
"src python: relative_url_prefix + 'portal_skins/erp5_xhtml_style/rsvp.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'portal_skins/erp5_xhtml_style/rsvp.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'portal_skins/erp5_xhtml_style/renderjs.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'portal_skins/erp5_xhtml_style/renderjs.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'jsstyle.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'jsstyle.js'"
></script>
<tal:block
tal:condition=
"python: no_style_gadget_url != ''"
>
<link
rel=
"prerender"
tal:attributes=
"href no_style_gadget_url"
>
<link
rel=
"prerender"
tal:attributes=
"href no_style_gadget_url"
>
</tal:block>
</tal:block>
</head>
</head>
...
...
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/view_main.zpt
View file @
2c1debe9
...
@@ -20,17 +20,20 @@
...
@@ -20,17 +20,20 @@
<base
tal:attributes=
"href python: '%s/' % web_section.absolute_url()"
/>
<base
tal:attributes=
"href python: '%s/' % web_section.absolute_url()"
/>
<meta
name=
"viewport"
content=
"width=device-width,height=device-height,initial-scale=1"
/>
<meta
name=
"viewport"
content=
"width=device-width,height=device-height,initial-scale=1"
/>
<title
tal:content=
"python: here.getTranslatedTitle() or web_section.getTranslatedTitle()"
></title>
<title
tal:content=
"python: here.getTranslatedTitle() or web_section.getTranslatedTitle()"
></title>
<noscript>
<link
rel=
"stylesheet"
tal-attributes=
"href no_style_css_url"
>
</noscript>
<tal:block
tal:condition=
"favicon_url"
>
<tal:block
tal:condition=
"favicon_url"
>
<link
rel=
"icon"
tal:attributes=
"href favicon_url"
/>
<link
rel=
"icon"
tal:attributes=
"href favicon_url"
/>
</tal:block>
</tal:block>
<tal:block
tal:condition=
"python: no_style_gadget_url == ''"
>
<link
rel=
"stylesheet"
tal:attributes=
"href no_style_css_url"
>
</tal:block>
<tal:block
tal:condition=
"python: no_style_gadget_url != ''"
>
<noscript>
<link
rel=
"stylesheet"
tal:attributes=
"href no_style_css_url"
>
</noscript>
<!-- Prevent conflicts with Web Page reference provided by erp5_web_renderjs_ui -->
<!-- Prevent conflicts with Web Page reference provided by erp5_web_renderjs_ui -->
<script
tal:attributes=
"src python: relative_url_prefix + 'portal_skins/erp5_xhtml_style/rsvp.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'portal_skins/erp5_xhtml_style/rsvp.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'portal_skins/erp5_xhtml_style/renderjs.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'portal_skins/erp5_xhtml_style/renderjs.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'jsstyle.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'jsstyle.js'"
></script>
<tal:block
tal:condition=
"python: no_style_gadget_url != ''"
>
<link
rel=
"prerender"
tal:attributes=
"href no_style_gadget_url"
>
<link
rel=
"prerender"
tal:attributes=
"href no_style_gadget_url"
>
</tal:block>
</tal:block>
</head>
</head>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment