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
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
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
Hide 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,18 +21,21 @@
<base
tal:attributes=
"href python: '%s/' % web_section.absolute_url()"
/>
<meta
name=
"viewport"
content=
"width=device-width,height=device-height,initial-scale=1"
/>
<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"
>
<link
rel=
"icon"
tal:attributes=
"href favicon_url"
/>
</tal:block>
<!-- 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/renderjs.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'jsstyle.js'"
></script>
<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 != ''"
>
<link
rel=
"prerender"
tal:attributes=
"href 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 -->
<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 + 'jsstyle.js'"
></script>
<link
rel=
"prerender"
tal:attributes=
"href no_style_gadget_url"
>
</tal:block>
</head>
<body
tal:attributes=
"data-nostyle-gadget-url no_style_gadget_url;
...
...
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/view_main.zpt
View file @
2c1debe9
...
...
@@ -20,18 +20,21 @@
<base
tal:attributes=
"href python: '%s/' % web_section.absolute_url()"
/>
<meta
name=
"viewport"
content=
"width=device-width,height=device-height,initial-scale=1"
/>
<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"
>
<link
rel=
"icon"
tal:attributes=
"href favicon_url"
/>
</tal:block>
<!-- 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/renderjs.js'"
></script>
<script
tal:attributes=
"src python: relative_url_prefix + 'jsstyle.js'"
></script>
<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 != ''"
>
<link
rel=
"prerender"
tal:attributes=
"href 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 -->
<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 + 'jsstyle.js'"
></script>
<link
rel=
"prerender"
tal:attributes=
"href no_style_gadget_url"
>
</tal:block>
</head>
<body
tal:attributes=
"data-nostyle-gadget-url no_style_gadget_url;
...
...
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