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
dfa7ff02
Commit
dfa7ff02
authored
Jan 13, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
romain_dev: forum
parent
f8899479
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1537 additions
and
10 deletions
+1537
-10
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.js
...n_dev/PathTemplateItem/web_page_module/romain_forum_js.js
+39
-8
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.xml
..._dev/PathTemplateItem/web_page_module/romain_forum_js.xml
+2
-2
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_html.html
...mplateItem/web_page_module/romain_thread_reader_html.html
+28
-0
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_html.xml
...emplateItem/web_page_module/romain_thread_reader_html.xml
+334
-0
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.js
...thTemplateItem/web_page_module/romain_thread_reader_js.js
+798
-0
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.xml
...hTemplateItem/web_page_module/romain_thread_reader_js.xml
+336
-0
No files found.
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.js
View file @
dfa7ff02
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
}
}
function
renderDiscussionThread
(
gadget
,
must_declare
,
jio_key
)
{
function
renderDiscussionThread
(
gadget
,
must_declare
,
jio_key
)
{
return
loadChildGadget
(
gadget
,
"
gadget_erp5_pt_form_
view
.html
"
,
return
loadChildGadget
(
gadget
,
"
gadget_erp5_pt_form_
dialog
.html
"
,
must_declare
,
function
(
form_gadget
)
{
must_declare
,
function
(
form_gadget
)
{
var
thread_info_dict
;
var
thread_info_dict
;
...
@@ -143,13 +143,13 @@
...
@@ -143,13 +143,13 @@
[
'
modification_date
'
,
'
Modification Date
'
]
[
'
modification_date
'
,
'
Modification Date
'
]
];
];
field_dict
.
listbox
=
{
field_dict
.
nutnut
=
{
"
column_list
"
:
column_list
,
"
column_list
"
:
column_list
,
"
show_anchor
"
:
0
,
"
show_anchor
"
:
0
,
"
default_params
"
:
{},
"
default_params
"
:
{},
"
editable
"
:
1
,
"
editable
"
:
1
,
"
editable_column_list
"
:
[],
"
editable_column_list
"
:
[],
"
key
"
:
"
field_
listbox
"
,
"
key
"
:
"
field_
nutnut
"
,
"
lines
"
:
15
,
"
lines
"
:
15
,
"
list_method
"
:
"
portal_catalog
"
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
"
urn:jio:allDocs?query=
"
+
Query
.
objectToSearchText
(
"
query
"
:
"
urn:jio:allDocs?query=
"
+
Query
.
objectToSearchText
(
...
@@ -177,12 +177,40 @@
...
@@ -177,12 +177,40 @@
"
search_column_list
"
:
[],
"
search_column_list
"
:
[],
"
sort_column_list
"
:
[],
"
sort_column_list
"
:
[],
"
sort
"
:
[[
'
modification_date
'
,
'
ASC
'
]],
"
sort
"
:
[[
'
modification_date
'
,
'
ASC
'
]],
"
title
"
:
"
Discussion Posts
"
,
"
title
"
:
"
Discussion Posts XXXXXXX
"
,
"
type
"
:
"
ListBox
"
"
type
"
:
"
GadgetField
"
,
"
url
"
:
"
gadget_thread_reader.html
"
,
"
sandbox
"
:
""
,
"
renderjs_extra
"
:
JSON
.
stringify
({
query
:
"
urn:jio:allDocs?query=
"
+
Query
.
objectToSearchText
(
new
ComplexQuery
({
operator
:
"
AND
"
,
query_list
:
[
new
SimpleQuery
({
key
:
"
portal_type
"
,
operator
:
"
=
"
,
type
:
"
simple
"
,
value
:
"
Discussion Post
"
}),
new
SimpleQuery
({
key
:
"
parent_uid
"
,
operator
:
"
=
"
,
type
:
"
simple
"
,
// XXX Check usual states
value
:
thread_info_dict
.
uid
})
],
type
:
"
complex
"
})
),
sort
:
[[
'
modification_date
'
,
'
ASC
'
]],
lines
:
15
,
}),
"
hidden
"
:
0
};
};
group_list
.
push
([
group_list
.
push
([
"
bottom
"
,
"
center
"
,
[[
"
listbox
"
]]
[[
"
nutnut
"
]]
],
[
],
[
"
hidden
"
,
[
"
listbox_modification_date
"
]
"
hidden
"
,
[
"
listbox_modification_date
"
]
]);
]);
...
@@ -465,11 +493,12 @@
...
@@ -465,11 +493,12 @@
return
;
return
;
})
})
.
allowPublicAcquisition
(
"
jio_allDocs
"
,
function
(
param_list
)
{
.
allowPublicAcquisition
(
"
jio_allDocs
"
,
function
(
param_list
,
scope
)
{
// XXX Convert iso date to a DateTime field
// XXX Convert iso date to a DateTime field
// XXX Paginate message to last message on modification date column
// XXX Paginate message to last message on modification date column
var
gadget
=
this
,
var
gadget
=
this
,
options
=
param_list
[
0
];
options
=
param_list
[
0
];
console
.
log
(
scope
,
param_list
);
return
gadget
.
jio_allDocs
(
options
)
return
gadget
.
jio_allDocs
(
options
)
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
date
,
len
=
result
.
data
.
total_rows
;
var
i
,
date
,
len
=
result
.
data
.
total_rows
;
...
@@ -502,6 +531,7 @@
...
@@ -502,6 +531,7 @@
}
}
};
};
}
}
/*
if (result.data.rows[i].value.hasOwnProperty("asStrippedHTML")) {
if (result.data.rows[i].value.hasOwnProperty("asStrippedHTML")) {
result.data.rows[i].value.asStrippedHTML = {
result.data.rows[i].value.asStrippedHTML = {
url_value: {
url_value: {
...
@@ -523,6 +553,7 @@
...
@@ -523,6 +553,7 @@
}
}
};
};
}
}
*/
}
}
return
result
;
return
result
;
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_forum_js.xml
View file @
dfa7ff02
...
@@ -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.
8969.7970.21555
</string>
</value>
<value>
<string>
989.
18879.37912.30737
</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>
16
09866799.64
</float>
<float>
16
10461438.43
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_html.html
0 → 100644
View file @
dfa7ff02
<!DOCTYPE html>
<html>
<head>
<!--
data-i18n=No records
data-i18n=Records
data-i18n=Reset
data-i18n=Previous
data-i18n=Next
-->
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
<title>
Thread Reader
</title>
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"domsugar.js"
type=
"text/javascript"
></script>
<!--script src="jiodev.js" type="text/javascript"></script-->
<script
src=
"gadget_global.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<script
src=
"gadget_thread_reader.js"
type=
"text/javascript"
></script>
</head>
<body>
</body>
</html>
\ No newline at end of file
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_html.xml
0 → 100644
View file @
dfa7ff02
This diff is collapsed.
Click to expand it.
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.js
0 → 100644
View file @
dfa7ff02
This diff is collapsed.
Click to expand it.
bt5/romain_dev/PathTemplateItem/web_page_module/romain_thread_reader_js.xml
0 → 100644
View file @
dfa7ff02
This diff is collapsed.
Click to expand it.
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