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
Amer
erp5
Commits
4a857ddc
Commit
4a857ddc
authored
Jul 02, 2018
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Worklist: stop using translateHTML
parent
bc65ba72
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_worklist_html.html
...m/web_page_module/rjs_gadget_erp5_page_worklist_html.html
+1
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_worklist_html.xml
...em/web_page_module/rjs_gadget_erp5_page_worklist_html.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_worklist_js.js
...eItem/web_page_module/rjs_gadget_erp5_page_worklist_js.js
+8
-9
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_worklist_js.xml
...Item/web_page_module/rjs_gadget_erp5_page_worklist_js.xml
+3
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_worklist_html.html
View file @
4a857ddc
...
...
@@ -29,7 +29,7 @@
<
/ul
>
{{
else
}}
<
div
class
=
"
worklist-empty
"
>
<
h2
data
-
i18n
=
"
All work caught up!
"
>
All
work
caught
up
!
<
/h2
>
<
h2
>
{{
empty_text
}}
<
/h2
>
<
img
src
=
"
gadget_erp5_worklist_empty.svg?format=svg
"
>
<
/div
>
{{
/
if
}}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_worklist_html.xml
View file @
4a857ddc
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
2.1183.1144.61900
</string>
</value>
<value>
<string>
96
8.5552.51560.44322
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
15
05133662.18
</float>
<float>
15
30534499.22
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_worklist_js.js
View file @
4a857ddc
...
...
@@ -18,7 +18,7 @@
// Acquired methods
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
.
declareAcquiredMethod
(
"
translate
Html
"
,
"
translateHtml
"
)
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
...
...
@@ -53,7 +53,7 @@
.
push
(
function
(
links
)
{
var
action_list
=
links
.
worklist
,
query_string
,
promise_list
=
[],
promise_list
=
[
gadget
.
translate
(
'
All work caught up!
'
)
],
display_options
,
i
;
for
(
i
=
0
;
i
<
action_list
.
length
;
i
+=
1
)
{
...
...
@@ -86,19 +86,18 @@
.
push
(
function
(
result_list
)
{
var
line_list
=
[],
i
;
for
(
i
=
0
;
i
<
result_list
.
length
;
i
+=
1
)
{
for
(
i
=
1
;
i
<
result_list
.
length
;
i
+=
1
)
{
line_list
.
push
({
link
:
result_list
[
i
][
0
],
title
:
result_list
[
i
][
1
],
count
:
result_list
[
i
][
2
]
});
}
return
gadget
.
translateHtml
(
table_template
({
document_list
:
line_list
}));
})
.
push
(
function
(
translated_html
)
{
gadget
.
element
.
querySelector
(
'
.document_list
'
).
innerHTML
=
translated_html
;
gadget
.
element
.
querySelector
(
'
.document_list
'
).
innerHTML
=
table_template
({
document_list
:
line_list
,
empty_text
:
result_list
[
0
]
});
});
});
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_worklist_js.xml
View file @
4a857ddc
...
...
@@ -216,7 +216,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
superkato
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
5.39086.65235.37
700
</string>
</value>
<value>
<string>
96
8.41423.51057.42
700
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
15
22751880.06
</float>
<float>
15
30534841.9
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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