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
fc94fdcc
Commit
fc94fdcc
authored
Jan 13, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
romain_dev: forum use html viewer
parent
543d3ca2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
11 deletions
+24
-11
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.js
...thTemplateItem/web_page_module/romain_thread_reader_js.js
+22
-9
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.xml
...hTemplateItem/web_page_module/romain_thread_reader_js.xml
+2
-2
No files found.
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.js
View file @
fc94fdcc
...
@@ -374,16 +374,29 @@
...
@@ -374,16 +374,29 @@
if
(
modification_dict
.
hasOwnProperty
(
'
allDocs_result
'
))
{
if
(
modification_dict
.
hasOwnProperty
(
'
allDocs_result
'
))
{
allDocs_result
=
JSON
.
parse
(
gadget
.
state
.
allDocs_result
);
allDocs_result
=
JSON
.
parse
(
gadget
.
state
.
allDocs_result
);
return
new
RSVP
.
Queue
(
RSVP
.
all
(
allDocs_result
.
data
.
rows
.
map
(
function
(
entry
)
{
return
gadget
.
declareGadget
(
'
gadget_html_viewer.html
'
)
.
push
(
function
(
viewer
)
{
return
viewer
.
render
({
value
:
entry
.
value
.
asStrippedHTML
})
.
push
(
function
()
{
return
viewer
;
});
});
})
))
.
push
(
function
(
viewer_list
)
{
domsugar
(
gadget
.
element
,
[
domsugar
(
gadget
.
element
,
[
domsugar
(
'
p
'
,
{
text
:
'
Comments:
'
}),
domsugar
(
'
p
'
,
{
text
:
'
Comments:
'
}),
domsugar
(
'
ol
'
,
allDocs_result
.
data
.
rows
.
map
(
function
(
entry
)
{
domsugar
(
'
ol
'
,
allDocs_result
.
data
.
rows
.
map
(
function
(
entry
,
i
)
{
console
.
log
(
entry
);
console
.
log
(
entry
);
return
domsugar
(
'
li
'
,
[
return
domsugar
(
'
li
'
,
[
domsugar
(
'
div
'
,
{
html
:
entry
.
value
.
asStrippedHTML
})
,
viewer_list
[
i
].
element
,
domsugar
(
'
hr
'
)
domsugar
(
'
hr
'
)
]);
]);
}))
}))
]);
]);
});
return
;
return
;
}
}
},
function
onStateChange
(
modification_dict
)
{
},
function
onStateChange
(
modification_dict
)
{
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.xml
View file @
fc94fdcc
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
989.
19030.1234.33297
</string>
</value>
<value>
<string>
989.
20325.997.53486
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1610
470594.07
</float>
<float>
1610
548223.31
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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