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
420b52ac
Commit
420b52ac
authored
Jul 12, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity&test: add line number for code in slideshow
parent
68456051
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
291 additions
and
2 deletions
+291
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/slide.css.css
..._skins/erp5_corporate_identity/template_css/slide.css.css
+22
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/slide.css.xml
..._skins/erp5_corporate_identity/template_css/slide.css.xml
+4
-0
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testCodeViewOnSlideshow-reference-snapshot-1.png.png
...uite/testCodeViewOnSlideshow-reference-snapshot-1.png.png
+0
-0
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testCodeViewOnSlideshow-reference-snapshot-1.png.xml
...uite/testCodeViewOnSlideshow-reference-snapshot-1.png.xml
+36
-0
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testCodeViewOnSlideshow.xml
...tal_tests/template_test_zuite/testCodeViewOnSlideshow.xml
+58
-0
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testCodeViewOnSlideshow.zpt
...tal_tests/template_test_zuite/testCodeViewOnSlideshow.zpt
+35
-0
bt5/erp5_corporate_identity_test/PathTemplateItem/web_page_module/template_test_slideshow_highlight_code_html.html
...e_module/template_test_slideshow_highlight_code_html.html
+21
-0
bt5/erp5_corporate_identity_test/PathTemplateItem/web_page_module/template_test_slideshow_highlight_code_html.xml
...ge_module/template_test_slideshow_highlight_code_html.xml
+115
-0
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/slide.css.css
View file @
420b52ac
...
@@ -32,8 +32,28 @@ html .ci-slideshow code {
...
@@ -32,8 +32,28 @@ html .ci-slideshow code {
font-size
:
.4em
;
font-size
:
.4em
;
}
}
/* line number */
html
.ci-slideshow
pre
{
counter-reset
:
lines
;
}
html
.ci-slideshow
pre
.line
{
counter-increment
:
lines
;
}
html
.ci-slideshow
pre
.line
::before
{
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
-o-user-select
:
none
;
user-select
:
none
;
content
:
counter
(
lines
);
text-align
:
right
;
width
:
1em
;
display
:
inline-block
;
padding-right
:
0.5em
;
margin-right
:
0.5em
;
color
:
#BBB
;
border-right
:
solid
1px
;
}
/*
/*
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/slide.css.xml
View file @
420b52ac
...
@@ -6,6 +6,10 @@
...
@@ -6,6 +6,10 @@
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<item>
<key>
<string>
__name__
</string>
</key>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
slide.css
</string>
</value>
<value>
<string>
slide.css
</string>
</value>
...
...
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testCodeViewOnSlideshow-reference-snapshot-1.png.png
0 → 100644
View file @
420b52ac
91.4 KB
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testCodeViewOnSlideshow-reference-snapshot-1.png.xml
0 → 100644
View file @
420b52ac
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Image"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
testCodeViewOnSlideshow-reference-snapshot-1.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>
492
</int>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
width
</string>
</key>
<value>
<int>
1192
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testCodeViewOnSlideshow.xml
0 → 100644
View file @
420b52ac
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
testCodeViewOnSlideshow
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity_test/PathTemplateItem/portal_tests/template_test_zuite/testCodeViewOnSlideshow.zpt
0 → 100644
View file @
420b52ac
<html
xmlns:tal=
"http://xml.zope.org/namespaces/tal"
xmlns:metal=
"http://xml.zope.org/namespaces/metal"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
Test for Code View On Slideshow
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><th
rowspan=
"1"
colspan=
"3"
>
Test for Code View On Slideshow
</th></tr>
</thead><tbody>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_page_module/template_test_slideshow_highlight_code_html/WebPage_exportAsSlideshow#/1/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[text()="App Configuration Router"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyImageMatchSnapshot
</td>
<td>
//pre
</td>
<td>
20
</td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
bt5/erp5_corporate_identity_test/PathTemplateItem/web_page_module/template_test_slideshow_highlight_code_html.html
0 → 100644
View file @
420b52ac
<section
class=
"screenshot"
>
<h1>
App Configuration Router
</h1>
<p>
</p>
<pre>
<code>
<
body
>
<
script data-renderjs-configuration=
"
configuration_manifest
"
type=
"
text/x-renderjs-configuration
">
gadget_officejs_nice_editor.configuration
<
/script
>
<
script data-renderjs-configuration=
"
parent_portal_type
"
type=
"
text/x-renderjs-configuration
">
Web Page Module
<
/script
>
<
script data-renderjs-configuration=
"
parent_relative_url
"
type=
"
text/x-renderjs-configuration
">
web_page_module
<
/script
>
<
script data-renderjs-configuration=
"
portal_type
"
type=
"
text/x-renderjs-configuration
">
Web Page
<
/script
>
<
script data-renderjs-configuration=
"
portal_skin_folder
"
type=
"
text/x-renderjs-configuration
">
erp5_text_editor
<
/script
>
<
script data-renderjs-configuration=
"
app_actions
"
type=
"
text/x-renderjs-configuration
">
(
'
Web Page Module | text_editor_view
'
)
<
/script
>
<
script data-renderjs-configuration=
"
app_allowed_sub_types
"
type=
"
text/x-renderjs-configuration
"><
/script
>
<
script data-renderjs-configuration=
"
web_page_module_dict
"
type=
"
text/x-renderjs-configuration
">
{
"
title
"
:
"
Nice Text Documents
"
,
"
filter_action
"
: 1,
"
hide_add_button
"
: 0}
<
/script
>
<
script data-renderjs-configuration=
"
app_view_reference
"
type=
"
text/x-renderjs-configuration
"><
/script
>
<
div
><
/div
>
<
/body
>
<
/html
>
</code>
</pre>
</section>
bt5/erp5_corporate_identity_test/PathTemplateItem/web_page_module/template_test_slideshow_highlight_code_html.xml
0 → 100644
View file @
420b52ac
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
Template.Test.Slideshow.High.Light.Code
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
template_test_slideshow_highlight_code_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Template Test Slideshow High Light Code
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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