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
1b9f35ce
Commit
1b9f35ce
authored
Jun 26, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_no_style: add page title
parent
e8d4b7e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
bt5/erp5_no_style/SkinTemplateItem/portal_skins/erp5_no_style/nostyle.js.js
...SkinTemplateItem/portal_skins/erp5_no_style/nostyle.js.js
+1
-0
bt5/erp5_no_style/SkinTemplateItem/portal_skins/erp5_no_style/view_main.zpt
...SkinTemplateItem/portal_skins/erp5_no_style/view_main.zpt
+4
-2
No files found.
bt5/erp5_no_style/SkinTemplateItem/portal_skins/erp5_no_style/nostyle.js.js
View file @
1b9f35ce
...
...
@@ -84,6 +84,7 @@
result_dict
.
xhr
.
responseText
,
'
text/html
'
);
document
.
title
=
dom_parser
.
title
;
return
result_dict
.
style_gadget
.
render
(
dom_parser
.
body
.
querySelector
(
'
main
'
).
innerHTML
);
...
...
bt5/erp5_no_style/SkinTemplateItem/portal_skins/erp5_no_style/view_main.zpt
View file @
1b9f35ce
...
...
@@ -7,12 +7,14 @@
dummy python: request.set('is_web_mode', True);
dummy python: request.set('ignore_layout', False);
dummy python: request.set('editable_mode', False);
web_site python: here.getWebSiteValue();
global_definitions_macros here/global_definitions/macros;"
>
<tal:block
metal:use-macro=
"global_definitions_macros/header_definitions"
/>
<html>
<head>
<base
tal:attributes=
"href python: '%s/' %
here.getWebSiteValue()
.absolute_url()"
/>
<base
tal:attributes=
"href python: '%s/' %
web_site
.absolute_url()"
/>
<meta
name=
"viewport"
content=
"width=device-width,height=device-height,initial-scale=1"
/>
<title
tal:content=
"python: here.getTranslatedTitle() or web_site.getTranslatedTitle()"
></title>
<noscript>
<link
rel=
"stylesheet"
href=
"nostyle.css"
>
</noscript>
...
...
@@ -22,7 +24,7 @@
<script
src=
"nostyle.js"
></script>
</head>
<body>
<tal:block
tal:content=
"structure python:
here.getWebSiteValue()
.WebSite_generateNavigationHTML()"
></tal:block>
<tal:block
tal:content=
"structure python:
web_site
.WebSite_generateNavigationHTML()"
></tal:block>
<main><tal:block
metal:define-slot=
"main"
/></main>
</body>
</html>
...
...
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