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
0
Merge Requests
0
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
Hamza
erp5
Commits
2c4f2f46
Commit
2c4f2f46
authored
Oct 12, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: add navigation in corporate identity web
parent
2bd1cb51
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
230 additions
and
43 deletions
+230
-43
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/ci_web_css/ci_web.css.css
...ins/erp5_corporate_identity_web/ci_web_css/ci_web.css.css
+133
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/erp5_ci_web_container_layout.xml
...5_corporate_identity_web/erp5_ci_web_container_layout.xml
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/erp5_ci_web_content_layout.xml
...rp5_corporate_identity_web/erp5_ci_web_content_layout.xml
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/erp5_ci_web_content_layout/profile_document.xml
...ntity_web/erp5_ci_web_content_layout/profile_document.xml
+2
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/erp5_ci_web_template.zpt
...kins/erp5_corporate_identity_web/erp5_ci_web_template.zpt
+5
-4
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/img.xml
...lateItem/portal_skins/erp5_corporate_identity_web/img.xml
+26
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/img/breadmarker.png.png
...skins/erp5_corporate_identity_web/img/breadmarker.png.png
+0
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/img/breadmarker.png.xml
...skins/erp5_corporate_identity_web/img/breadmarker.png.xml
+40
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/theme_macros_library.zpt
...kins/erp5_corporate_identity_web/theme_macros_library.zpt
+22
-34
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/ci_web_css/ci_web.css.css
View file @
2c4f2f46
...
...
@@ -427,3 +427,135 @@ pre {
.ci-web
.ci-web-page-content
pre
code
{
white-space
:
pre
;
}
#hidden_fieldset
{
display
:
none
;
}
.headteaser
{
background
:
rgb
(
228
,
235
,
241
);
text-align
:
left
;
color
:
#404040
;
/* ===== EDIT SVEN ==== */
color
:
rgb
(
131
,
151
,
166
);
/* ===== EDIT SVEN ==== */
font-size
:
15px
;
line-height
:
26px
;
}
.headteaser
h1
,
.content
h2
{
font-weight
:
normal
;
font-size
:
25px
;
line-height
:
33px
;
}
.breadcrumb
{
padding
:
0
;
}
.breadcrumb
ul
{
margin
:
0
;
padding
:
0
;
list-style-type
:
none
;
padding
:
0
;
}
.breadcrumb
ul
li
{
margin
:
0
;
padding
:
0
;
font-size
:
13px
;
color
:
rgb
(
113
,
134
,
149
);
}
.breadcrumb
ul
li
a
{
margin
:
0
;
padding
:
0
;
float
:
left
;
padding-right
:
14px
;
margin-right
:
7px
;
text-decoration
:
none
;
color
:
rgb
(
28
,
118
,
187
);
background
:
url(../img/breadmarker.png)
no-repeat
right
10px
;
transition
:
all
300ms
ease-in-out
;
-moz-transition
:
all
300ms
ease-in-out
;
-webkit-transition
:
all
300ms
ease-in-out
;
-o-transition
:
all
300ms
ease-in-out
;
}
.breadcrumb
ul
li
a
:hover
{
color
:
rgb
(
2
,
87
,
136
);
transition
:
all
200ms
ease-in-out
;
-moz-transition
:
all
200ms
ease-in-out
;
-webkit-transition
:
all
200ms
ease-in-out
;
-o-transition
:
all
200ms
ease-in-out
;
}
.last-breadcrumb
{
background
:
none
!important
;
}
.headteaser
.teaserText
{
padding
:
43px
0
0
0
;
}
.headteaser
.teaserInfo
{
margin
:
43px
0
0
0
;
padding
:
10px
0
14px
0
;
border-top
:
1px
solid
rgb
(
180
,
199
,
213
);
border-bottom
:
1px
solid
rgb
(
180
,
199
,
213
);
float
:
left
;
width
:
100%
;
}
.teaserInfo
ul
{
list-style-type
:
none
;
margin
:
0
;
padding
:
0
;
font-size
:
13px
;
line-height
:
20px
;
}
.teaserInfo
ul
li
{
display
:
block
;
float
:
none
;
}
.teaserInfo
ul
strong
{
display
:
inline-block
;
width
:
110px
;
font-weight
:
600
;
}
.wrapper
:not
(
#wrapper_site_header
)
{
width
:
80%
;
max-width
:
64em
;
margin
:
0
auto
;
}
@media
only
screen
and
(
min-width
:
700px
)
{
.teaserInfo
ul
li
{
display
:
inline-block
;
float
:
left
;
padding
:
0
16px
0
16px
;
border-right
:
1px
solid
rgb
(
180
,
199
,
213
);
}
.teaserInfo
ul
li
:nth-of-type
(
1
)
{
padding-left
:
4px
;
}
.teaserInfo
ul
strong
{
width
:
auto
;
display
:
block
;
}
}
@media
(
max-width
:
64em
)
{
.wrapper
:not
(
#wrapper_site_header
)
{
width
:
auto
;
padding
:
0
1em
;
}
}
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/erp5_ci_web_container_layout.xml
View file @
2c4f2f46
...
...
@@ -203,7 +203,7 @@
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
container_layout
</string>
</value>
<value>
<string>
erp5_ci_web_
container_layout
</string>
</value>
</item>
<item>
<key>
<string>
pt
</string>
</key>
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/erp5_ci_web_content_layout.xml
View file @
2c4f2f46
...
...
@@ -129,7 +129,7 @@
<key>
<string>
profile_document
</string>
</key>
<value>
<list>
<string>
document_summary
</string>
<string>
profile_document
</string>
</list>
</value>
</item>
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/erp5_ci_web_content_layout/
document_summary
.xml
→
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/erp5_ci_web_content_layout/
profile_document
.xml
View file @
2c4f2f46
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document_summary
</string>
</value>
<value>
<string>
profile_document
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -271,7 +271,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
document_summary
</string>
</value>
<value>
<string>
profile_document
</string>
</value>
</item>
<item>
<key>
<string>
unicode
</string>
</key>
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/erp5_ci_web_template.zpt
View file @
2c4f2f46
...
...
@@ -8,7 +8,7 @@
content_form python: content_form_id and getattr(here, content_form_id, None) or None;
has_no_layout python: layout_form is None;
has_no_content_form python: content_form is None;
aggregate python: has_no_layout or layout_form.Form_getGroupList(['site_header', 'site_footer', 'header_title', 'breadcrumb', '
document_summary
', 'special_header']);
aggregate python: has_no_layout or layout_form.Form_getGroupList(['site_header', 'site_footer', 'header_title', 'breadcrumb', '
profile_document
', 'special_header']);
aggregate python: ((aggregate is not has_no_layout) and dict(aggregate)) or {};
mode python: request.get('list_mode', request.get('dialog_mode', None), '');
mode_class python: '%s-mode-content' % (mode);
...
...
@@ -17,7 +17,7 @@
site_footer_area python: aggregate.get('site_footer', []);
header_title_area python: aggregate.get('header_title', []);
breadcrumb_area python: aggregate.get('breadcrumb', []);
document_summary_area python: aggregate.get('document_summary
', []);
profile_document_area python: aggregate.get('profile_document
', []);
special_header_area python: aggregate.get('special_header', []);
website python: context.getWebSiteValue();
root_url python: website.absolute_url();
...
...
@@ -61,9 +61,10 @@
<tal:block metal:use-macro="here/theme_macros_library/macros/aggregate_render"/>
</tal:block>
<tal:block tal:repeat="aggregate python: [('
document_summary', document_summary
_area)]">
<tal:block tal:repeat="aggregate python: [('
profile_document', profile_document
_area)]">
<tal:block metal:use-macro="here/theme_macros_library/macros/aggregate_render"/>
</tal:block>
</tal:block>
<span class="portal_status_message" tal:content="portal_status_message"
...
...
@@ -83,7 +84,7 @@
<tal:comment replace="nothing">Standard Page Form Content ("simplicity: Form is rendered here")</tal:comment>
<tal:block tal:condition="python: not is_front_page">
<tal:block
metal:use-macro="here/theme_macros_library/macros/default_content" /
>
<tal:block
tal:replace="structure python: here.asEntireHTML()"></tal:block
>
</tal:block>
<tal:comment replace="nothing">Special Page Content (Front page, showing all documents related to default document)</tal:comment>
<tal:block tal:condition="python: layout_form is not None">
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/img.xml
0 → 100644
View file @
2c4f2f46
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
img
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/img/breadmarker.png.png
0 → 100644
View file @
2c4f2f46
1023 Bytes
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/img/breadmarker.png.xml
0 → 100644
View file @
2c4f2f46
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Image"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
breadmarker.png
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
image/png
</string>
</value>
</item>
<item>
<key>
<string>
height
</string>
</key>
<value>
<int>
8
</int>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
breadmarker.png
</string>
</value>
</item>
<item>
<key>
<string>
width
</string>
</key>
<value>
<int>
6
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/theme_macros_library.zpt
View file @
2c4f2f46
...
...
@@ -63,10 +63,13 @@
<tal:block tal:repeat="field field_list">
<tal:block tal:define="field_title string: ${field/title};
strip_title python: field_title.strip();
good_render nocall: context/field_render/macros/field_render;
fake_render python: context.theme_macros_library.macros.get(strip_title);
field_render python: good_render if fake_render is None else fake_render;">
<tal:block tal:replace="structure python: context.field_renderer(macro=field_render)" />
fake_render python: context.theme_macros_library.macros.get(strip_title);">
<tal:block tal:condition="fake_render">
<tal:block tal:replace="structure python: context.field_renderer(macro=fake_render)" />
</tal:block>
<tal:block tal:condition="not:fake_render">
<tal:block metal:use-macro="here/field_render/macros/field_render"/>
</tal:block>
</tal:block>
</tal:block>
</fieldset>
...
...
@@ -396,59 +399,44 @@
</tal:block>
</tal:block>
<tal:block metal:define-macro="header_title"><p>BAM-Header-Title</p></tal:block>
<tal:block metal:define-macro="discussions"><p>BAM-Discussions</p></tal:block>
<tal:block metal:define-macro="breadcrumb"><p>BAM-Breadcrumb</p></tal:block>
<tal:block metal:define-macro="document_profile"><p>BAM-Document-Profile</p></tal:block>
<tal:block metal:define-macro="xxxheader_title">
<tal:block metal:define-macro="header_title">
<h1 tal:content="here/getTitle"></h1>
</tal:block>
<tal:block metal:define-macro="
xxx
breadcrumb">
<tal:block metal:define-macro="breadcrumb">
<div class="breadcrumb"
tal:define="current_web_section python:request.get('current_web_section', here);
current_web_document python:request.get('current_web_document', here)
;
current_web_document python:here
;
portal_path python:request.get('current_web_section_url', current_web_section.absolute_url());
is_web_section_default_document python:request.get('is_web_section_default_document',False);
breadcrumb_list python: current_web_section.getBreadcrumbItemList(current_web_document);">
<ul>
<li tal:repeat="breadcrumb python:
breadcrumb_list[:(is_web_section_default_document and -1 or None)]">
<li tal:repeat="breadcrumb python:breadcrumb_list[:(is_web_section_default_document and -1 or None)]">
<tal:block tal:define="is_last repeat/breadcrumb/end;
is_first repeat/breadcrumb/start;">
<a href="#" tal:attributes="href python: current_web_section.getPermanentURL(breadcrumb[1]);
<a href="#"
tal:attributes="href python:current_web_section.getPermanentURL(breadcrumb[1]);
title python: breadcrumb[2];
class python: test(is_last, 'last-breadcrumb', 'breadcrumb')"
tal:content="python: test(is_first, breadcrumb[0], breadcrumb[1].getShortTitle() or breadcrumb[0])">Title</a>
</tal:block>
</li>
</ul>
</div>
</tal:block>
<tal:block metal:define-macro="
xxx
profile_document">
<tal:block metal:define-macro="profile_document">
<span tal:replace="here/getDescription"/>
<div class="teaserInfo">
<ul>
<li><strong>Last Update:</strong><span tal:replace="python: context.getModificationDate().strftime('%Y-%m-%d')"/></li>
<li><strong>Version:</strong><span tal:replace="python: getattr(context, 'getVersion', str)()"/></li>
<li><strong>Language:</strong><span tal:replace="python: getattr(context, 'getLanguage', str)()"/></li>
<li>Social Media Map</li>
</ul>
</div>
</tal:block>
...
...
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